我在构建APK时遇到此错误。 键入命令后:Cordova build android,我得到以下内容
检查Java JDK和Android SDK版本 ANDROID_SDK_ROOT = C:\ Users \ hakem \ AppData \ Local \ Android \ Sdk(推荐设置) ANDROID_HOME = C:\ Users \ hakem \ AppData \ Local \ Android \ Sdk(已弃用) 使用Android SDK:C:\ Users \ hakem \ AppData \ Local \ Android \ Sdk 子项目路径:CordovaLib 子项目路径:app >任务:app:processDebugResources失败
**FAILURE: Build failed with an exception.**
*** What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
AAPT: error: failed writing to 'C:\Users\hakem\Desktop\MyApps\App5\platforms\android\app\build\intermediates\runtime_symbol_list\debug\R.txt': The data is invalid. (13).**
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
16 actionable tasks: 1 executed, 15 up-to-date
Command failed with exit code 1: C:\Users\hakem\Desktop\MyApps\App5\platforms\android\gradlew cdvBuildDebug -b C:\Users\hakem\Desktop\MyApps\App5\platforms\android\build.gradle