【发布时间】:2021-07-27 14:48:29
【问题描述】:
Cordova 创建一个包并将其导入到 android studio
以下错误:
1: Task failed with an exception.
-----------
* Where:
Script '/Users/admin/Projects/android_App/Android_1/platforms/android/CordovaLib/cordova.gradle' line: 112
* What went wrong:
A problem occurred evaluating project ': app'.
> Unable to determine Android SDK directory.
* Try:
Run with --stack trace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ': app'.
> compileSdkVersion is not specified. Please add it to build.gradle`
没有插件。 我已经用最新的更新了所有的 Cordova、npm、android studio。但仍然无法解决这个问题。
SDK 工具卸载并重新安装。
【问题讨论】:
标签: android-studio cordova build.gradle