java.lang.IllegalStateException: buildToolsVersion is not specified.解决办法
来源:互联网 发布:淘宝供销平台登录 编辑:程序博客网 时间:2024/06/15 14:51
如果大家在cordova的项目中执行: cordova build android 命令,
遇到如下问题:
Error: Command failed: cd /Users/tyler/workspace/webstormspace/NewsApp/releases/dev/www && cordova build android
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: buildToolsVersion is not specified.
at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)
at com.android.build.gradle.BasePlugin
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
at com.android.build.gradle.BasePlugin.lambda
at com.android.build.gradle.BasePlugin$$Lambda$29/1202404165.execute(Unknown Source)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDisError: Command failed: cd /Users/tyler/workspace/webstormspace/NewsApp/releases/dev/www && cordova build android
解决办法是:
更新你的Android SDK build tools, 到最新版本即可,可能你更新了android platform。
- java.lang.IllegalStateException: buildToolsVersion is not specified.解决办法
- Error:Cause: buildToolsVersion is not specified.
- Error:Cause: buildToolsVersion is not specified.
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized解决办法
- java.lang.IllegalStateException 解决办法
- java.lang.IllegalStateException解决办法
- java.lang.IllegalStateException异常解决办法
- java.lang.IllegalStateException异常解决办法
- java.lang.IllegalStateException异常解决办法 .
- java.lang.IllegalStateException异常解决办法
- java.lang.IllegalStateException异常解决办法
- java.lang.IllegalStateException: The specified child already has a parent.
- java.lang.IllegalStateException:The specified child already has a parent.
- java.lang.IllegalStateException: The specified child already has a parent
- java.lang.IllegalStateException: TimerTask is scheduled already
- 异常:java.lang.IllegalStateException: EntityManager is closed
- java.lang.IllegalStateException: aidl is missing
- okhttp java.lang.IllegalStateException: cache is closed
- keras
- RTMP推流及协议
- 11/23训练日记
- Spark On YARN内存分配(2)
- 5. Posiz 消息队列
- java.lang.IllegalStateException: buildToolsVersion is not specified.解决办法
- MySQL索引原理
- (三十三)TabLayout
- python 统计相关库
- 经典编程书籍书单
- liunx下 采用shell实现彩色进度条
- 我所理解的spring ioc容器
- leetCode-Longest Continuous Increasing Subsequence
- UIView子view随父view同步变化