question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build clean project with gradle

See original GitHub issue

Environment

OS: Mac OS Sierra & Windows 10 (tried with both) Capacitor: 1.0.0-beta7 Platform: Android

Current behavior

Can’t build clean project

Expected behavior

I should be able to build

Steps to Reproduce

  1. Create a capacitor project
  2. Create a capacitor plugin
  3. Install the plugin into project
  4. Run “cap add android
  5. Change directory to android (cd android) at root project
  6. Run “gradle assemble” then fail

Error message `$ gradle assemble Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :app google-services.json not found, google-services plugin not applied. Push Notifications won’t work Download https://dl.bintray.com/ionic-team/capacitor/ionic-team/capacitor-android/maven-metadata.xml

Task :capacitor-android:compileDebugJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :capacitor-android:compileReleaseJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-mdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xhdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxxhdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-mdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-mdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-hdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxxhdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-hdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-mdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-hdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found. C:\Users\scope\Documents\capacitor projects\capacitor-inapppurchase-example\node_modules\capacitor-inapppurchase\android\capacitor-inapppurchase\build\intermediates\res\merged\release\drawable-xxhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found.

Task :capacitor-inapppurchase:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:capacitor-inapppurchase:verifyReleaseResources’.

java.util.concurrent.ExecutionException: 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BU¦LD FAILED in 2m 18s 154 actionable tasks: 154 executed `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Sep 18, 2018

I was having a different problem, but maybe my solution works for you.

Try changing the implementation 'ionic-team:capacitor-android:1+' from the plugin’s build.gradle to implementation project(':capacitor-android')

1reaction
jcesarmobilecommented, Sep 1, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why run 'gradle clean build' instead of 'gradle build'?
The clean task is defined by the java plugin and it simply removes the buildDir folder, thus cleaning everything including leftovers from ...
Read more >
Cannot clean related project because of Gradle daemon and ...
gradlew.bat --daemon clean build. The project will successfully clean and build. Run it again and it will fail with:
Read more >
gradle project cannot be built in IntelliJ : IDEA-280852
I have a Gradle project that compiles fine from the command line, but not in IntelliJ. IntelliJ seems to be very confused. Check...
Read more >
gradle clean sometimes fails if cached configuration is invalid
This can happen on macOS, Windows, or Linux if some path, package, or env variable on the system relating to the build environment...
Read more >
gradle clean can't delete file on Windows - Carl Rice
gradle clean can't delete file on Windows · Press Win+R and type resmon then click OK · Click the CPU tab and open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found