簡體   English   中英

錯誤構建ionic / cordova Android API 10

[英]Error build ionic/cordova Android API 10

我在編譯項目ionic / cordova(6)時發現問題,在AndroidManifest.xml(platforms \\ android)中查看並正確設置。

在AndroidManifest.xml(platforms \\ android \\ build \\ intermediates \\ exploded-aar \\ android \\ CordovaLib \\ unspecified \\ debug)中,我將minsdk設置為10,但是在構建項目時,它會覆蓋14

我在config.xml首選項上添加了name =“ android-minSdkVersion” value =“ 10”,但沒有用。

我添加清單工具:overrideLibrary,但不起作用...

Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [android:CordovaLib:unspecified:debug] D:\XX\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml
1>      Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usage
1>
.....................
1>
1>  * Try:
1>  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1>MDAVSCLI : Java HotSpot(TM) 64-Bit Server VM warning : ignoring option MaxPermSize=512m; support was removed in 8.0

我遇到了同樣的問題,即使進行了一些修復,我都可以編譯apk,但它在裝有Android api 10的設備上無法正常運行。

原因是根據文檔,如果您使用的是Cordova版本6,則可能無法為Android API 10構建正確的apk。您應該改用Cordova4.0.X。

https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM