gpt4 book ai didi

android - ionic cordova为Android编译,使minSdkVersion的错误小于声明的版本

转载 作者:行者123 更新时间:2023-12-02 10:58:21 25 4
gpt4 key购买 nike

请帮忙,

我试图将我的android平台版本更新为7.1.0,但是出现了很多问题,所以我决定放回版本6.3.0,但是当我这样做时,我再也无法编译了,当我尝试为Android编译时我得到的错误:

:processArmv7DebugManifest
/Users/francisco/ionic-projects/jungery2/platforms/android/AndroidManifest.xml:52:5-74 Error:

uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:23.53.589.4] /Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/23.53.589.4/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.xwalk.core" to force usage


See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

:processArmv7DebugManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:23.53.589.4] /Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/23.53.589.4/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.xwalk.core" to force usage


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 15.71 secs

Error: /Users/francisco/ionic-projects/jungery2/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/francisco/ionic-projects/jungery2/platforms/android/AndroidManifest.xml:52:5-74 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:23.53.589.4] /Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/23.53.589.4/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.xwalk.core" to force usage

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:23.53.589.4] /Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/23.53.589.4/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.xwalk.core" to force usage

我不确定在哪里可以找到这个:
minSdkVersion 15

编辑1:
> cordova plugin ls
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-facebook4 1.10.1 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googleplus 5.3.2 "Google SignIn"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.1.4 "cordova-plugin-ionic-webview"
cordova-plugin-linkedin 1.2.1 "LinkedIn"
cordova-plugin-mauron85-background-geolocation 2.3.6 "CDVBackgroundGeolocation"
cordova-plugin-media 5.0.2 "Media"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-nativegeocoder 2.0.5 "NativeGeocoder"
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-streaming-media 2.1.3 "StreamingMedia"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 0.7.14 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 6.0.8 "BarcodeScanner"
phonegap-plugin-push 2.2.3 "PushPlugin"
twitter-connect-plugin 0.6.0 "Twitter Connect"

编辑2:
Error: /Users/francisco/ionic-projects/jungery2/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/francisco/ionic-projects/jungery2/platforms/android/res/xml/authenticator.xml:2:81-93: AAPT: No resource found that matches the given name (at 'icon' with value '@mipmap/icon').

/Users/francisco/ionic-projects/jungery2/platforms/android/res/xml/authenticator.xml:2:147-159: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@mipmap/icon').

/Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/res/merged/armv7/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'icon' with value '@mipmap/icon').

/Users/francisco/ionic-projects/jungery2/platforms/android/build/intermediates/res/merged/armv7/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'smallIcon' with value '@mipmap/icon').



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

有人可以帮忙吗?

最佳答案

在我看来,您的人行横道插件版本在此过程中发生了变化。如果可以检查升级/降级之前的版本(在config.xml中),则可以显式安装以前的版本。如果您不是碰巧在源代码控制之下,那么在我看来,minSdkVersion 16已添加到Crosswalk 2.0.0版本中。如果您不得不猜测以前使用的版本,请尝试使用1.8.0(或更早的版本)之类的方法。

更新
根据条形码扫描仪的注释,我将尝试以下两个选项之一:

  • 在config.xml中添加一个最小SDK版本,该版本> = 16。如果您将条形码扫描仪插件设置为> = 16,它可能不会覆盖它。<preference name="android-minSdkVersion" value="16" />
  • 尝试将条形码扫描仪更新到7.1+
  • 关于android - ionic cordova为Android编译,使minSdkVersion的错误小于声明的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52935785/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com