我正在关注此页面中的使用命令行工具迁移的步骤: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 update project --subprojects --path . --target "android-14" ) 时会发生这种情况,但是当我将其升级到版本 19 时问题就消失了。
这里可能是什么问题?
谢谢!