Gradle build :app:mergeDebugResources file not found error - android-gradle-plugin

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.

Related

from unknown error: archive error: (unknown error: could not write file to temp dir), entry error: (unknown error: leftover data after zip entry)

I am running parallel scenarios on remote using selenoid but after some time and after some scenarios got passed, they fail because of following error while file upload.
unknown error: unable to unzip 'file' from unknown error: archive error: (unknown error: could not write file to temp dir), entry error: (unknown error: leftover data after zip entry)
But When I run one of that failing scenario again, it passes with no error.
I am using parallel_split_test gem to divide scenarios, selenoid for remote testing, Selenium-webdriver vrsion (3.142.7) and ruby 2.5.5

`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

Not able to run project

I have selected Location in Xcode preference also but getting the same error:
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Error: Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
at checkExecSyncError (child_process.js:601:13)
at Object.execFileSync (child_process.js:621:13)
at Object.runIOS [as func] (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/runIOS/runIOS.js:76:17)
at Promise.resolve.then (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/cliEntry.js:117:22)
at <anonymous>
Check Xcode Command Line Tools are configured Correctly go following path
Open Xcode > Preferences > Locations
Then Set the Command Line Tools
In my case, an Xcode update caused iPhoneOS-12.2.sdk to be no longer available; instead, the path contained iPhoneOS-12.4.sdk. But react-native run-ios complained of not being able to find 12.2.
Restarting the computer fixed the issue.
Do you have XCode and Command Line Tools installed?

google caja not building

Where can I download the file html-css-sanitizer-minified.js? I'd rather download the file than build caja myself. Reason: I tried building caja and got the errors below. Any Clues?
Version.set:
[exec] Execute failed: java.io.IOException: Cannot run program "tools\svnve
rsion-nocolon": CreateProcess error=2, The system cannot find the file specified
Version.update:
build.info:
HtmlParser:
[javac] Compiling 55 source files to c:\google-caja\third_party\java\htmlpar
ser\lib
[javac] error: error reading c:\google-caja\third_party\java\jetty\lib\jetty
-util.jar; error in opening zip file
[javac] error: error reading c:\google-caja\third_party\java\jetty\lib\jetty
.jar; error in opening zip file
[javac] 2 errors
BUILD FAILED
Thank you
Caja doesn't build on Windows. You can get the latest version of the sanitizer here:
http://www.gstatic.com/caja/5030/html-sanitizer-minified.js