java.lang.IllegalStateException: buildToolsVersion is not specified.

GitHub | admund | 2 months ago
  1. 0

    GitHub comment 11#168673337

    GitHub | 11 months ago | johnjohndoe
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Error in cordova When type "cordova build android"

    Stack Overflow | 7 months ago | Questi0n
    java.lang.IllegalStateException: buildToolsVersion is not specified.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    buildToolsVersion is not specified.

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:176)
    1 frame
  3. com.android.tools.build.gradle
    BasePlugin$10$1.call
    1. com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:606)
    2. com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:572)
    3. com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:569)
    3 frames
  4. com.android.builder
    ThreadRecorder$1.record
    1. com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)
    2. com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)
    2 frames
  5. com.android.tools.build.gradle
    BasePlugin$10.execute
    1. com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:568)
    2. com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:565)
    2 frames
  6. org.gradle.internal
    BroadcastDispatch.dispatch
    1. org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
    2. org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
    3. org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
    4. org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
    5. org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
    5 frames
  7. Gradle Core
    ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
    1. org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    1 frame
  8. com.sun.proxy
    $Proxy11.afterEvaluate
    1. com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)
    1 frame
  9. Gradle Core
    DefaultGradleLauncher.run
    1. org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
    2. org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
    3. org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:510)
    4. org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:90)
    5. org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
    6. org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
    7. org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:125)
    8. org.gradle.internal.Factories$1.create(Factories.java:22)
    9. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    10. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
    11. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:122)
    12. org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
    13. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
    14. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
    15. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    16. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
    17. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
    18. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
    18 frames
  10. Gradle Launcher
    RunBuildAction.run
    1. org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
    2. org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    3. org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    4. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
    5. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
    6. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
    7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
    8. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    9. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    10. org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    10 frames
  11. Gradle Core
    Actions$RunnableActionAdapter.execute
    1. org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
    1 frame
  12. Gradle Launcher
    EntryPoint.run
    1. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    2. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    3. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    4. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    5. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    6. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    7. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    8. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    9. org.gradle.launcher.Main.doAction(Main.java:33)
    10. org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    10 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  14. Gradle Launcher
    GradleMain.main
    1. org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    2. org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    3. org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    3 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  16. org.gradle.wrapper
    GradleWrapperMain.main
    1. org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
    2. org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
    3. org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
    3 frames