AppCenter似乎找不到Android资源

问题描述 投票:0回答:1

我正在通过AppCenter构建React-Native移动应用,而Android版本在最后的构建步骤之一中失败了:

> Task :app:processReleaseResources FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed

/Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher (aka org.***.mobile:mipmap/ic_launcher) not found.

  /Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.

  /Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher_round (aka org.***.mobile:mipmap/ic_launcher_round) not found.

  /Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:14: AAPT: error: resource style/AppTheme (aka org.***.mobile:style/AppTheme) not found.

  /Users/runner/runners/2.166.3/work/1/s/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml:22: AAPT: error: resource string/app_name (aka org.***.mobile:string/app_name) not found.

  error: failed processing manifest.

几乎就像它找不到在Android res目录中找到的文件,例如strings.xml

我是否缺少app / build.gradle文件中的某些设置,导致该设置过程以这种方式失败?

android react-native visual-studio-app-center
1个回答
0
投票
检查您的android清单文件,我认为您已经删除了mipmap图标,检查所有ic_launcher,apptheme是否全部在res文件夹中。
© www.soinside.com 2019 - 2024. All rights reserved.