Ionic2 Ionic错误java.lang.IllegalStateException:未指定buildToolsVersion
我正试图从github在ionic 2中运行一个应用程序,但运行后:Ionic2 Ionic错误java.lang.IllegalStateException:未指定buildToolsVersion,ionic2,android-sdk-tools,Ionic2,Android Sdk Tools,我正试图从github在ionic 2中运行一个应用程序,但运行后: sudo ionic run android 我得到: Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. java.lang.IllegalStateException: buildToolsVersion is not specified.
sudo ionic run 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)...
FAILURE: Build failed with an exception.
* Where:
Script '/Users/andrea/Desktop/voicedetection/ionic-recorder/platforms/android/CordovaLib/cordova.gradle' line: 128
* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found
我已经试过了,但是运气不好。我还再次尝试rm/add platform,我确信android sdk链接正确(版本25.2.3)。无需使用“sudo”来运行ionic命令(运行、服务等)。也许这是你的问题。试着不用它跑步。不,不幸的是,没有sudo也是一样的。