我正在关注此页面中的使用命令行工具迁移步骤:https://crosswalk-project.org/#documentation/cordova/migrate_an_application
当我进入第6步并运行 ant debug 时,会返回很多错误:
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] /Users/jacquesblom/Repo/testics/platforms/android/CordovaLib/xwalk_core_library/res/layout/color_picker_advanced_component.xml:11: error: No resource identifier found for attribute 'layout_marginStart' in package 'android'
[aapt] /Users/jacquesblom/Repo/testics/platforms/android/CordovaLib/xwalk_core_library/res/layout/color_picker_advanced_component.xml:11: error: No resource identifier found for attribute 'layout_marginEnd' in package 'android'
[aapt] /Users/jacquesblom/Repo/testics/platforms/android/CordovaLib/xwalk_core_library/res/layout/color_picker_advanced_component.xml:20: error: No resource identifier found for attribute 'layout_marginStart' in package 'android'
[aapt] /Users/jacquesblom/Repo/testics/platforms/android/CordovaLib/xwalk_core_library/res/layout/color_picker_advanced_component.xml:20: error: No resource identifier found for attribute 'layout_marginEnd' in package 'android'
[aapt] /Users/jacquesblom/Repo/testics/platforms/android/CordovaLib/xwalk_core_library/res/layout-v17/color_picker_advanced_component.xml:11: error: No resource identifier found for attribute 'layout_marginStart' in package 'android'
**… several more of these**
BUILD FAILED
/Users/jacquesblom/android-sdk/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
/Users/jacquesblom/android-sdk/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/Users/jacquesblom/android-sdk/sdk/tools/ant/build.xml:698: null returned: 1
当我将Android SDK版本设置为14( android更新项目--subprojects --path .--target“android-14”)时会发生这种情况,但是当我碰到它时问题就消失了最高版本19。
这可能是什么问题?
谢谢!