java.lang.IllegalStateException: buildToolsVersion is not specified.

Stack Overflow | Basel Shishani | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    buildToolsVersion is not specified.

    GitHub | 1 month ago | asifahmed11
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Cordova ERROR at cmd comand: cordova Build android

    Stack Overflow | 2 weeks ago | K. Efe
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  4. 0

    GitHub comment 872#263554116

    GitHub | 3 months ago | Mdhaker
    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:173)
    1 frame
  3. com.android.tools.build.gradle
    BasePlugin$10.call
    1. com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)
    2. com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
    3. com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
    3 frames
  4. com.android.builder
    ThreadRecorder.record
    1. com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
    2. com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
    2 frames
  5. com.android.tools.build.gradle
    BasePlugin.lambda$createTasks$1
    1. com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
    1 frame
  6. org.gradle.internal
    ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
    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)
    6. org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    6 frames
  7. com.sun.proxy
    $Proxy11.afterEvaluate
    1. com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)
    1 frame
  8. 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.DefaultProject.evaluate(DefaultProject.java:573)
    4. org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:125)
    5. org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
    6. org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
    7. org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:124)
    8. org.gradle.internal.Factories$1.create(Factories.java:22)
    9. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    10. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
    11. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:121)
    12. org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
    13. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
    14. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
    15. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    16. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
    17. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
    18. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
    18 frames
  9. 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:82)
    7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
    8. org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    8 frames
  10. Gradle Core
    Actions$RunnableActionAdapter.execute
    1. org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
    1 frame
  11. Gradle Launcher
    EntryPoint.run
    1. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:244)
    2. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:217)
    3. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:33)
    4. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    5. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    6. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    7. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:210)
    8. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:174)
    9. org.gradle.launcher.Main.doAction(Main.java:33)
    10. org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    10 frames
  12. 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
  13. Gradle Launcher
    GradleMain.main
    1. org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
    2. org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
    3. org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    3 frames