Cordova run error - No installed build tools found. Install the Android build tools version 19.1.0 or higher -
while running cordova-run
@ first time after cordova installation , configuration official guide instalattion: cordova installation guide, folloe error returned:
c:\projetoscordova\lsls>cordova run --debug android_home=c:\android\tools java_home=c:\program files\java\jdk1.8.0_144 subproject path: cordovalib failed notify projectevaluationlistener.afterevaluate(), primary configuration failure takes precedence. java.lang.illegalstateexception: buildtoolsversion not specified. @ com.google.common.base.preconditions.checkstate(preconditions.java:173) @ com.android.build.gradle.baseplugin.createandroidtasks(baseplugin.java:645) @ com.android.build.gradle.baseplugin$10.call(baseplugin.java:608) @ com.android.build.gradle.baseplugin$10.call(baseplugin.java:605) @ com.android.builder.profile.threadrecorder.record(threadrecorder.java:156) @ com.android.builder.profile.threadrecorder.record(threadrecorder.java:120) build failed total time: 1.353 secs @ com.android.build.gradle.baseplugin.lambda$createtasks$1(baseplugin.java:603) @ org.gradle.internal.event.broadcastdispatch$actioninvocationhandler.dispatch(broadcastdispatch.java:93) @ org.gradle.internal.event.broadcastdispatch$actioninvocationhandler.dispatch(broadcastdispatch.java:82) @ org.gradle.internal.event.abstractbroadcastdispatch.dispatch(abstractbroadcastdispatch.java:44) @ org.gradle.internal.event.broadcastdispatch.dispatch(broadcastdispatch.java:79) @ org.gradle.internal.event.broadcastdispatch.dispatch(broadcastdispatch.java:30) @ org.gradle.internal.dispatch.proxydispatchadapter$dispatchinginvocationhandler.invoke(proxydispatchadapter.java:93) @ com.sun.proxy.$proxy16.afterevaluate(unknown source) @ org.gradle.configuration.project.lifecycleprojectevaluator.notifyafterevaluate(lifecycleprojectevaluator.java:82) @ org.gradle.configuration.project.lifecycleprojectevaluator.doconfigure(lifecycleprojectevaluator.java:76) @ org.gradle.configuration.project.lifecycleprojectevaluator.access$000(lifecycleprojectevaluator.java:33) @ org.gradle.configuration.project.lifecycleprojectevaluator$1.execute(lifecycleprojectevaluator.java:53) @ org.gradle.configuration.project.lifecycleprojectevaluator$1.execute(lifecycleprojectevaluator.java:50) @ org.gradle.internal.transformers$4.transform(transformers.java:169) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:106) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:61) @ org.gradle.configuration.project.lifecycleprojectevaluator.evaluate(lifecycleprojectevaluator.java:50) @ org.gradle.api.internal.project.defaultproject.evaluate(defaultproject.java:628) @ org.gradle.api.internal.project.defaultproject.evaluate(defaultproject.java:129) @ org.gradle.execution.taskpathprojectevaluator.configure(taskpathprojectevaluator.java:35) @ org.gradle.execution.taskpathprojectevaluator.configurehierarchy(taskpathprojectevaluator.java:60) @ org.gradle.configuration.defaultbuildconfigurer.configure(defaultbuildconfigurer.java:38) @ org.gradle.initialization.defaultgradlelauncher$1.execute(defaultgradlelauncher.java:161) @ org.gradle.initialization.defaultgradlelauncher$1.execute(defaultgradlelauncher.java:158) @ org.gradle.internal.transformers$4.transform(transformers.java:169) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:106) @ org.gradle.internal.progress.defaultbuildoperationexecutor.run(defaultbuildoperationexecutor.java:56) @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:158) @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:119) @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:102) @ org.gradle.launcher.exec.gradlebuildcontroller.run(gradlebuildcontroller.java:71) @ org.gradle.tooling.internal.provider.executebuildactionrunner.run(executebuildactionrunner.java:28) @ org.gradle.launcher.exec.chainingbuildactionrunner.run(chainingbuildactionrunner.java:35) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:41) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:26) @ org.gradle.tooling.internal.provider.continuousbuildactionexecuter.execute(continuousbuildactionexecuter.java:75) @ org.gradle.tooling.internal.provider.continuousbuildactionexecuter.execute(continuousbuildactionexecuter.java:49) @ org.gradle.tooling.internal.provider.servicessetupbuildactionexecuter.execute(servicessetupbuildactionexecuter.java:44) @ org.gradle.tooling.internal.provider.servicessetupbuildactionexecuter.execute(servicessetupbuildactionexecuter.java:29) @ org.gradle.launcher.daemon.server.exec.executebuild.dobuild(executebuild.java:67) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.watchfordisconnection.execute(watchfordisconnection.java:47) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.resetdeprecationlogger.execute(resetdeprecationlogger.java:26) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.requeststopifsingleuseddaemon.execute(requeststopifsingleuseddaemon.java:34) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:74) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:72) @ org.gradle.util.swapper.swap(swapper.java:38) @ org.gradle.launcher.daemon.server.exec.forwardclientinput.execute(forwardclientinput.java:72) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.logandcheckhealth.execute(logandcheckhealth.java:55) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.logtoclient.dobuild(logtoclient.java:60) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.establishbuildenvironment.dobuild(establishbuildenvironment.java:72) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.startbuildorrespondwithbusy$1.run(startbuildorrespondwithbusy.java:50) @ org.gradle.launcher.daemon.server.daemonstatecoordinator$1.run(daemonstatecoordinator.java:297) @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54) @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624) @ java.lang.thread.run(thread.java:748) failure: build failed exception. * where: script 'c:\projetoscordova\lsls\platforms\android\cordovalib\cordova.gradle' line: 64 * went wrong: problem occurred evaluating root project 'android'. > no installed build tools found. install android build tools version 19.1.0 or higher.
- try: run --stacktrace option stack trace. run --info or -- debug option more log output.
i tried suggested commands, execution did not change , error same. want run , generate apk file, can me?
at tried run android list sdk --all
, had message:
c:\users\octav>android list sdk --all ************************************************************************** "android" command deprecated. manual sdk, avd, , project management, please use android studio. command-line tools, use tools\bin\sdkmanager.bat , tools\bin\avdmanager.bat ************************************************************************** "android" sdk commands can translated sdkmanager commands on best-effort basis. (this prompt can suppressed --use-sdk-wrapper commend-line argument or setting use_sdk_wrapper environment variable) continue? [y/n]:
follow "y":
build-tools;19.1.0 description: android sdk build-tools 19.1 version: 19.1.0 installed location: c:\android\build-tools\19.1.0 build-tools;20.0.0 description: android sdk build-tools 20 version: 20.0.0 installed location: c:\android\build-tools\20.0.0 build-tools;21.1.2 description: android sdk build-tools 21.1.2 version: 21.1.2 installed location: c:\android\build-tools\21.1.2 build-tools;22.0.1 description: android sdk build-tools 22.0.1 version: 22.0.1 installed location: c:\android\build-tools\22.0.1 build-tools;23.0.1 description: android sdk build-tools 23.0.1 version: 23.0.1 installed location: c:\android\build-tools\23.0.1 build-tools;23.0.2 description: android sdk build-tools 23.0.2 version: 23.0.2 installed location: c:\android\build-tools\23.0.2 build-tools;23.0.3 description: android sdk build-tools 23.0.3 version: 23.0.3 installed location: c:\android\build-tools\23.0.3 build-tools;24.0.0 description: android sdk build-tools 24 version: 24.0.0 installed location: c:\android\build-tools\24.0.0 build-tools;24.0.1 description: android sdk build-tools 24.0.1 version: 24.0.1 installed location: c:\android\build-tools\24.0.1 build-tools;24.0.2 description: android sdk build-tools 24.0.2 version: 24.0.2 installed location: c:\android\build-tools\24.0.2 build-tools;24.0.3 description: android sdk build-tools 24.0.3 version: 24.0.3 installed location: c:\android\build-tools\24.0.3 build-tools;25.0.0 description: android sdk build-tools 25 version: 25.0.0 installed location: c:\android\build-tools\25.0.0 build-tools;25.0.1 description: android sdk build-tools 25.0.1 version: 25.0.1 installed location: c:\android\build-tools\25.0.1 build-tools;25.0.2 description: android sdk build-tools 25.0.2 version: 25.0.2 installed location: c:\android\build-tools\25.0.2 build-tools;25.0.3 description: android sdk build-tools 25.0.3 version: 25.0.3 installed location: c:\android\build-tools\25.0.3 build-tools;26.0.0 description: android sdk build-tools 26 version: 26.0.0 installed location: c:\android\build-tools\26.0.0 build-tools;26.0.1 description: android sdk build-tools 26.0.1 version: 26.0.1 installed location: c:\android\build-tools\26.0.1
when run echo %android_home%
:
c:\users\octav>echo %android_home% c:\android\tools
and echo %java_home%
:
c:\users\octav>echo %java_home% c:\program files\java\jdk1.8.0_144
and part of path:
Comments
Post a Comment