我有一个 Alloy 应用程序,我正在尝试包含 Intercom 的最新 SDK (3.1.2)。我能够毫无问题地编译 iOS 应用程序。但是,在尝试编译 Android 版本时,它会抛出错误。
Titanium SDK:6.0.3GA Hyperloop:2.0.1 Android 构建工具:23.0.1
构建时导致错误的命令:
打包应用程序:/Users/matiaspenela/Library/android-sdk-macosx/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/ BoatyardHyperloop/build/android/gen" "-M" "/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/AndroidManifest.xml" "-A" "/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/ android/bin/assets""-S""/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/res""-I""/Users/matiaspenela/Library/android-sdk-macosx/platforms/android- 23/android.jar""-F""/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support. v7.appcompat:android.support.v7.cardview:io.intercom.android.sdk.gcm:io.intercom.android.sdk""-S""/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/117231-7807- 19ndtdv/res" "-S" "/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/117231-7807-z4fljn/res" "-S" "/var/folders/xh/4kptgxf94q99cc4rrwz1l56r0000gn/T/11723m/70hg res" "-S" "/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-gcm-3.1.2/res" "-S" "/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res"
抛出的错误:
[错误]:无法打包应用程序:[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator。 xml:12:错误:在包“com.boatyard.hyperloop”[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom 中找不到属性“扩展”的资源标识符-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:20:错误:在包'com.boatyard.hyperloop'中找不到属性'layout_scrollFlags'的资源标识符[错误]:[错误]:/Users/ matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1。2/res/layout/intercom_conversation_coordinator.xml:26:错误:在包“com.boatyard.hyperloop”[错误]中找不到属性“layout_collapseMode”的资源标识符:
[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:33:错误:找不到属性的资源标识符' 'com.boatyard.hyperloop' 包中的 layout_collapseMode' [错误]:
在包“com.boatyard.hyperloop”[错误]中找不到属性“layout_behavior”的资源标识符:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1 .2/res/layout/intercom_conversation_coordinator.xml:93:错误:在包“com.boatyard.hyperloop”[错误]中找不到属性“layout_behavior”的资源标识符:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/ BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:42:错误:错误:找不到与给定名称匹配的资源(在'layout_behavior',值为'@string /appbar_scrolling_view_behavior')。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:72:错误:错误:找不到与给定名称匹配的资源(在“layout_behavior”,值为“@string/appbar_scrolling_view_behavior”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:89:错误:错误:否找到与给定名称匹配的资源(在“layout_behavior”处,值为“@string/appbar_scrolling_view_behavior”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1。2/res/layout/intercom_conversation_coordinator.xml:93:错误:错误:找不到与给定名称匹配的资源(在“layout_behavior”处,值为“@string/appbar_scrolling_view_behavior”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:错误:错误:否找到与给定名称匹配的资源(在“layout_marginBottom”处,值为“@dimen/intercom_composer_activity_margin”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:错误:错误:否找到与给定名称匹配的资源(在 'layout_marginEnd' 值为“@dimen/intercom_composer_activity_margin”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:错误:错误:否找到与给定名称匹配的资源(在“layout_marginRight”处,值为“@dimen/intercom_composer_activity_margin”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:错误:错误:否找到与给定名称匹配的资源(在“背景”处,值为“@drawable/intercom_composer_circular_ripple”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:找不到与给定名称匹配的资源(在“layout_height”,值为“@dimen/intercom_composer_toolbar_with_status_bar_height”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“背景”,值为“@color/intercom_composer_full_screen_toolbar”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1。2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:找不到与给定名称匹配的资源(在“fitsSystemWindows”处,值为“@bool/intercom_composer_fits_system_windows”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“paddingTop”处,值为“@dimen/intercom_composer_toolbar_content_offset”)。[错误] :/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:找不到与给定名称匹配的资源(在“paddingTop”,值为“@dimen/intercom_composer_toolbar_content_offset”)。[错误] :/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:错误:错误:找不到与给定名称匹配的资源(在“paddingTop”,值为“@dimen/intercom_composer_toolbar_content_offset”)。[错误] :
[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:找不到匹配的资源给定的名称(在“layout_height”处,值为“@dimen/intercom_composer_toolbar_with_status_bar_height”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“背景”,值为“@color/intercom_composer_full_screen_toolbar”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:找不到与给定名称匹配的资源(在“fitsSystemWindows”,值为“@bool/intercom_composer_fits_system_windows”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“paddingTop”处,值为“@dimen/intercom_composer_toolbar_content_offset”)。值为“@bool/intercom_composer_fits_system_windows”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“paddingTop”处,值为“@dimen/intercom_composer_toolbar_content_offset”)。值为“@bool/intercom_composer_fits_system_windows”)。[错误]:[错误]:/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:错误:错误:否找到与给定名称匹配的资源(在“paddingTop”处,值为“@dimen/intercom_composer_toolbar_content_offset”)。
提前致谢!