本地离线打包使用HBuilder-Integrate-AS打包设置targetSdkVersion 34打包后的app一直卡启动页面
但是如果把targetSdkVersion 改为32后打包出来的app就都正常能打开,就是把targetSdkVersion 设置为32以上的打包就会一直卡启动页面是为什么,33也不行 34也不行
是兼容问题还是什么问题,有人知道什么解决吗
本地离线打包使用HBuilder-Integrate-AS打包设置targetSdkVersion 34打包后的app一直卡启动页面
但是如果把targetSdkVersion 改为32后打包出来的app就都正常能打开,就是把targetSdkVersion 设置为32以上的打包就会一直卡启动页面是为什么,33也不行 34也不行
是兼容问题还是什么问题,有人知道什么解决吗
木杉丶 (作者) - 你喜或悲,他也都在那里
原来是androidx.webkit:webkit 版本太低了,是下载的HBuilder-Integrate-AS设置的androidx.webkit:webkit 版本为1.3.0虽然可以正常打包,但是当设置targetSdkVersion 为34以后 androidx.webkit:webkit 要升级版本为1.6.0打包后出来的app才能正常打开
请问下楼主,有遇到过这个问题么,我在本地构建 app 的时候一直有这个问题
simpleDemo-mergeReleaseResources-12:/values/values.xml:2288: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found
木杉丶 (作者)
https://nativesupport.dcloud.net.cn/AppDocs/FAQ/android.html 去看那个离线打包的注意事项,很多错误的注意事项都在那里,HBuilderX 4.41版,离线打包报error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found
从4.41版起,为了适配android 15,需要配置compileSdk 为 35、buildToolsVersion 为 35.0.0、Gradle 为 8.11.1 版、Android Gradle 插件为 8.7.3 版。
2025-11-03 17:28
2***@qq.com
遇到了同样的问题,用这方法解决了,谢谢楼主
2024-12-27 19:52