uni-app 昨天都可以打包的 今天应用都打包不了了
uni-app 昨天都可以打包的 今天应用都打包不了了
操作步骤:
- 云打包,自定义基座也不行了
预期结果:
- 希望可以打包
实际结果:
- 希望可以打包
bug描述:
[PackagePath]/app/AndroidManifest.xml Error:
Attribute category#${JPUSH_PKGNAME}@name at AndroidManifest.xml requires a placeholder substitution but no value for is provided.
[PackagePath]/app/AndroidManifest.xml Error:
Attribute category#${JPUSH_PKGNAME}@name at AndroidManifest.xml requires a placeholder substitution but no value for is provided.
FAILURE: Build failed with an exception.
-
What went wrong:
- Execution failed for task ‘:app:processReleaseMainManifest’.
- Manifest merger failed with multiple errors, see logs
- Execution failed for task ‘:app:processReleaseMainManifest’.
-
Try:
- Run with --debug option to get more log output. Run with --scan to get full insights.
-
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processReleaseMainManifest'. ...
BUILD FAILED in 2s gradle build error: 1
更多关于uni-app 昨天都可以打包的 今天应用都打包不了了的实战教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
我有点崩溃了 自定义基座也打不了 一直 不了
更多关于uni-app 昨天都可以打包的 今天应用都打包不了了的实战教程也可以访问 https://www.itying.com/category-93-b0.html
回退版本,可能是更新的问题
官方有人嘛 等着上线呢 唉 裂开了 打包10次了 都是一样失效
这个错误是因为极光推送(JPush)的配置问题导致的。在 AndroidManifest.xml 中有一个 ${JPUSH_PKGNAME} 占位符没有正确赋值。
解决方案:
1. 检查 manifestPlaceholders 配置
在 app/src/main/AndroidManifest.xml 或模块的 build.gradle 中,确保正确配置了极光推送的包名占位符:
在 build.gradle 的 android 节点下添加:
android {
defaultConfig {
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
// 其他配置...
]
}
}

