【发布时间】:2021-11-22 08:45:53
【问题描述】:
我正在尝试构建 cordova android 项目,这就是我得到的:
> Task :app:processDebugResources FAILED
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
cordova/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:2548: AAPT: error: resource android:attr/lStar not found.
该项目过去常常工作,这只是从哪里发生的。尝试删除android平台并重新安装并得到越来越多的问题。
更新
现在我收到了这个错误:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.intentfilter:android-permissions:0.1.8.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom
- https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom
- .../cordova/platforms/android/app/libs/com/intentfilter/android-permissions/0.1.8/android-permissions-0.1.8.pom
Required by:
project :app
【问题讨论】:
-
运行命令
ionic cordova resources android. -
我没有使用离子
-
只需使用
cordova resources android -
Cordova 不知道资源;尝试
cordova help获取所有可用命令的列表。 -
粘贴 values.xml