uni-app 云打包时打自定义调适基座会报错
uni-app 云打包时打自定义调适基座会报错
开发环境 | 版本号 | 项目创建方式 |
---|---|---|
Mac | macOS Sonoma v14.4.1 | HBuilderX |
操作步骤:
- HBuilder 选单点击「发行」
- 点击「原生App-云打包」
- 弹窗后勾选「Android (apk包)」
- 填入 Android 包名
- 点击「使用自有证书」,填入自有「证书别名」、「证书私钥密码」、选择「证书文件」
- 点击「打自定义调适基座」
- 最后在最下方选「传统打包」,按「打包」
预期结果:
- 能打包成功,生成自定义调适基座
实际结果:
bug描述:
- Appid:
UNI
D16D0BC - Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
- Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
- Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
- Warning: unexpected element (uri:"", local:“extension-level”). Expected elements are
<codename>
,<layoutlib>
,<api-level>
- Warning: unexpected element (uri:"", local:“base-extension”). Expected elements are
<codename>
,<layoutlib>
,<api-level>
[PackagePath]/app/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value forandroid:exported
when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.- FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseMainManifest'.
> Manifest merger failed with multiple errors, see logs
* 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'.
...
更多关于uni-app 云打包时打自定义调适基座会报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复