我用cordova@11 + cordova-android@10.1.2构建问题,用一个空的应用程序,我得到
aapt2.exe W 07-07 09:09:11 9232 8132 LoadedArsc.cpp:682] Unknown chunk type '200'.我在Android中更新了所有SDK和构建工具。这是我的配置
<?xml version='1.0' encoding='utf-8'?>
<widget id="test.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>Sample Apache Cordova App</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<preference name="scheme" value="app" />
<preference name="hostname" value="test.app" />
<preference name="deployment-target" value="12.0" />
<preference name="android-minSdkVersion" value="23" />
<preference name="android-maxSdkVersion" value="32" />
<preference name="android-targetSdkVersion" value="32" />
<preference name="Orientation" value="portrait" />
<preference name="DisallowOverscroll" value="true" />
<preference name="EnableViewportScale" value="true" />
</widget>然后,构建似乎成功,但如果我添加任何插件,我的设备没有准备好(5秒内没有启动)。我如何调试这个?
发布于 2022-07-07 16:10:42
尝试将构建目标更改为30。我认为构建工具还不能构建SDK32。
https://stackoverflow.com/questions/72898494
复制相似问题