我有一个使用Crosswalk的Android/Cordova项目。在尝试构建时,出现以下错误:
:processArmv7DebugManifest/app/platforms/android/AndroidManifest.xml:31:5-74 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:20.50.533.12] /app/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/20.50.533.12/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:20.50.533.12] /app/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/20.50.533.12/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
但是我在我的config.xml中设置了ver17:
<preference name="android-minSdkVersion" value="17" />
<preference name="android-targetSdkVersion" value="17" />
此外,在 platforms/android/AndroidManifest.xml 文件中也是一样的:
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" />
我尝试移除并再次添加Crosswalk和"platform android"本身,但错误仍然存在。 请帮忙。