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.
Related
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
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')
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
Everything was working fine then suddenly I'm getting following error
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
:react-native-mauron85-background-geolocation:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-mauron85-background-geolocation:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 23.413 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
I managed to fix this by changing one line in node_modules/react-native-mauron85-background-geolocation/android/lib/build.gradle
from
compile 'com.android.support:support-v4:+'
to
compile 'com.android.support:support-v4:23.+'
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.