java.lang.IllegalStateException: buildToolsVersion is not specified.

Stack Overflow | K. Efe | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 31#248488790

    GitHub | 7 months ago | daiwenbo88
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  2. 0

    Build project with a versionCode to high

    Google Groups | 1 year ago | Jonathan
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  3. 0

    An error with "cordova build android"

    Stack Overflow | 4 months ago | Yoghurt尧
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cordova project build error

    Stack Overflow | 2 months ago | Stack crawler
    java.lang.IllegalStateException: buildToolsVersion is not specified.
  6. 0

    Cannot add task as a task with that name already exists.

    GitHub | 1 year ago | xgouchet
    org.gradle.api.InvalidUserDataException: Cannot add task ':app:jacocoTestBetaGooglePlayStoreDebugUnitTestReport' as a task with that name already exists.
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
    $Proxy12.afterEvaluate
    1. com.sun.proxy.$Proxy12.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.AbstractProject.evaluate(AbstractProject.java:540)
    4. org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:93)
    5. org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
    6. org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
    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
    ForwardClientInput$2.call
    1. org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
    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:48)
    5. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
    6. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
    7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
    8. org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
    9. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    10. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    11. org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
    12. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    13. org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    14. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    15. org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    16. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    17. org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
    18. org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
    18 frames
  10. Gradle Core
    Swapper.swap
    1. org.gradle.util.Swapper.swap(Swapper.java:38)
    1 frame
  11. Gradle Launcher
    DaemonStateCoordinator$1.run
    1. org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
    2. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    3. org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)
    4. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    5. org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
    6. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    7. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    8. org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
    9. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    10. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    11. org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
    12. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    13. org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    14. org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:237)
    14 frames
  12. Gradle Core
    StoppableExecutorImpl$1.run
    1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    2 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames