Getting error while building apk in release mode in Flutter - release-mode

What went wrong:
Execution failed for task ':app:processReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\Muham.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:4:5-94: AAPT: error: resource android:color/system_neutral1_900 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:5:5-93: AAPT: error: resource android:color/system_neutral1_0 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:6:5-94: AAPT: error: resource android:color/system_neutral1_800 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:7:5-94: AAPT: error: resource android:color/system_neutral1_700 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:8:5-94: AAPT: error: resource android:color/system_neutral1_600 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:9:5-94: AAPT: error: resource android:color/system_neutral1_500 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:10:5-94: AAPT: error: resource android:color/system_neutral1_400 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:11:5-94: AAPT: error: resource android:color/system_neutral1_300 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:12:5-94: AAPT: error: resource android:color/system_neutral1_200 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:13:5-94: AAPT: error: resource android:color/system_neutral1_100 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:14:5-93: AAPT: error: resource android:color/system_neutral1_50 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:15:5-93: AAPT: error: resource android:color/system_neutral1_10 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:16:5-102: AAPT: error: resource android:color/system_neutral2_1000 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:17:5-102: AAPT: error: resource android:color/system_neutral2_900 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:18:5-101: AAPT: error: resource android:color/system_neutral2_0 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:19:5-102: AAPT: error: resource android:color/system_neutral2_800 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:20:5-102: AAPT: error: resource android:color/system_neutral2_700 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:21:5-102: AAPT: error: resource android:color/system_neutral2_600 not found.
C:\Users\Muham\.gradle\caches\transforms-3\2ebc8c16535d1d598f9826988518bd5b\transformed\material-1.5.0-beta01\res\values-v31\values-v31.xml:22:5-102: AAPT: error: resource android:color/system_neutral2_500 not found.

Try this command in your project's directory.
flutter pub cache clean
or if you're using an older version then
flutter pub cache repair
Otherwise, you can try using a newer flutter version.
and upgrading your compileSdkVersion

Related

./gradle bundlerelease not generating aab

I was trying to build an app via ./gradle bundlerelease
got an error everytime:
C:\Users\xxx\Desktop\app\node_modules\#react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseAppInitProvider.java:25: error: cannot find symbol
BuildConfig.APPLICATION_ID + ".reactnativefirebaseappinitprovider";
^
symbol: variable APPLICATION_ID
location: class BuildConfig
1 error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-firebase_app:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Downgrad the gradle to 3.6.0 (in build.gradle) and rebuild the project.
classpath('com.android.tools.build:gradle:3.6.0')

`react-native run-android` fails when I pass `--deviceId`

I have a react-native project that builds fine with react-native run-android. But if I run it as react-native run-android --deviceId xxxx, I get the following error:
> Task :#remobile_react-native-qrcode-local-image:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':#remobile_react-native-qrcode-local-image:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2734: error: resource android:attr/fontStyle not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2735: error: resource android:attr/font not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2736: error: resource android:attr/fontWeight not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2737: error: resource android:attr/fontVariationSettings not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2738: error: resource android:attr/ttcIndex not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2902: error: resource android:attr/startX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2905: error: resource android:attr/startY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2908: error: resource android:attr/endX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2911: error: resource android:attr/endY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2919: error: resource android:attr/offset not found.
error: failed linking references.
It's quite strange. It's as if react-native can't interpret static files in a QR-code library when passing a --deviceId. Any ideas why this might be?
Here's the repo if anyone is interested.

react-native-tcp:verifyReleaseResources FAILED

Get an Error when I create a Signed APK.
Task :react-native-tcp:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-tcp:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.
Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless
.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored no
t found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:7: error: resource android:attr/colorError not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:11: error: resource android:attr/colorError not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not fo
und.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v28\values-v2
8.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v28\values-v2
8.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
11: error: resource android:attr/fontStyle not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
12: error: resource android:attr/font not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
13: error: resource android:attr/fontWeight not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
14: error: resource android:attr/fontVariationSettings not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
15: error: resource android:attr/ttcIndex not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
96: error: resource android:attr/startX not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
99: error: resource android:attr/startY not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
02: error: resource android:attr/endX not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
05: error: resource android:attr/endY not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
13: error: resource android:attr/offset not found.
error: failed linking references.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 56s
55 actionable tasks: 3 executed, 52 up-to-date
You have to use RN 0.55.4 and install "stream" and "stream-browserify" dependency by using npm and it would be work. it might work on last version of RN but i don't test it.
if you got error when create signed APK, use: gradlew assembleRelease --console plain

Gradle build :app:mergeDebugResources file not found error

I installed a fresh copy of the newest Android Studio and then created a new "Basic Activity" project with the default settings. Now when I try to execute Gradle Build it will generate several "file not found" errors as follows:
16:49:27: Executing task 'build'...
Executing tasks: [build]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceDebug
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\anim\abc_tooltip_exit.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\layout\design_navigation_item.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_btn_colored_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_action_bar_up_container.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_search_dropdown_item_icons_2line.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxxhdpi-v4\abc_text_select_handle_right_mtrl_dark.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_secondary_text_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_btn_default_mtrl_shape.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_primary_text_disable_only_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_screen_simple_overlay_action_mode.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_primary_text_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_popup_menu_header_item_layout.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xhdpi-v17\abc_spinner_mtrl_am_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-mdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxhdpi-v4\abc_ic_star_black_36dp.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_edit_text_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.0.aar\18f801487329cf88fc1bb34c25ff9eeb\res\layout\notification_template_lines_media.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\select_dialog_multichoice_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\drawable-v21\avd_show_password.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_000.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_015.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\drawable\design_password_eye.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_list_selector_background_transition_holo_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\anim\abc_fade_in.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color-v23\abc_btn_colored_borderless_text_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\anim\design_snackbar_out.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
9 actionable tasks: 8 executed, 1 up-to-date
16:49:32: Task execution finished 'build'.
Any idea why those files are missing ?
Could it be the path name because my username is "Käyttäjä" and for some reason the compiler cannot handle it ?
How to solve the situation ?
It looks like the files are in place for example:
Yes. It was the path name thing. What I did was I created a new Windows 10 user with no special characters in the name and now it works just fine. This sounds like a bug. Reported.

Can't compile application when including Intercom Android SDK using Hyperloop

I have an Alloy app that I am trying to include Intercom's Latest SDK (3.1.2). I was able to compile the iOS app with no problems. However, when trying to compile the Android version, it throws errors.
Titanium SDK: 6.0.3GA
Hyperloop: 2.0.1
Android Build Tools: 23.0.1
Command that causes error while building:
Packaging application:
/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/117231-7807-15jhg3m/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"
Errors thrown:
[ERROR] : Failed to package application: [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:12:
error: No resource identifier found for attribute 'expanded' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:20:
error: No resource identifier found for attribute 'layout_scrollFlags'
in package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:26:
error: No resource identifier found for attribute
'layout_collapseMode' in package 'com.boatyard.hyperloop' [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:33:
error: No resource identifier found for attribute
'layout_collapseMode' in package 'com.boatyard.hyperloop' [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:42:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:72:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:89:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:93:
error: No resource identifier found for attribute 'layout_behavior' in
package 'com.boatyard.hyperloop' [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:42:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:72:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:89:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_conversation_coordinator.xml:93:
error: Error: No resource found that matches the given name (at
'layout_behavior' with value
'#string/appbar_scrolling_view_behavior'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginBottom' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginEnd' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'layout_marginRight' with value
'#dimen/intercom_composer_activity_margin'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_expander_button.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#drawable/intercom_composer_circular_ripple'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'layout_height' with value
'#dimen/intercom_composer_toolbar_with_status_bar_height'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#color/intercom_composer_full_screen_toolbar'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'fitsSystemWindows' with value
'#bool/intercom_composer_fits_system_windows'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gallery_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'paddingTop' with value
'#dimen/intercom_composer_toolbar_content_offset'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'layout_height' with value
'#dimen/intercom_composer_toolbar_with_status_bar_height'). [ERROR] :
[ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'background' with value
'#color/intercom_composer_full_screen_toolbar'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'fitsSystemWindows' with value
'#bool/intercom_composer_fits_system_windows'). [ERROR] : [ERROR] :
/Users/matiaspenela/Documents/Appcelerator_Studio_Workspace/BoatyardHyperloop/build/hyperloop/android/intercom-sdk-base-3.1.2/res/layout/intercom_gif_input_toolbar.xml:1:
error: Error: No resource found that matches the given name (at
'paddingTop' with value
'#dimen/intercom_composer_toolbar_content_offset').
Thanks in advance!