我正在尝试生成APK,并且正在为我安装此错误:
任务':CordovaLib:compileDebugAidl'的执行失败
issu之后的此逻辑将Ionic从6.1.1版本更新为6.2.1。我已经尝试过推翻判决,但还不能确定。
离子信息:
√ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.2.1 (C:\Users\xxx\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.3.0, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 9 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Android\android-sdk)
NodeJS : v6.12.0 (C:\Program Files\nodejs\node.exe)
npm : 3.10.10
OS : Windows 10
我重新安装了ionic,现在它引入了以下错误:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not download builder.jar (com.android.tools.build:builder:3.0.1)
> Could not get resource 'https://maven.google.com/com/android/tools/build/builder/3.0.1/builder-3.0.1.jar'.
> Tag mismatch!
卸载并安装了Android平台。显示以下错误:
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugAidl'.
> java.lang.IllegalStateException: aidl is missing from 'C:\Android\android-sdk\build-tools\28.0.3\aidl.exe'