繁体   English   中英

Cordova / android编译错误与人行横道

[英]Cordova/android compile error with 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版本的一个问题,他们取消了对较旧的Andorid API的支持。 将config.xml中的Crosswalk版本更改为先前版本19为我解决了这个问题

<preference name="xwalkVersion" value="19" />

尝试使用minSdkVersion标志构建:

cordova build android -- --minSdkVersion=16

注意双重 - 是故意的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM