Can't build clean project with gradle
See original GitHub issueEnvironment
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
- Create a capacitor project
- Create a capacitor plugin
- Install the plugin into project
- Run “cap add android”
- Change directory to android (cd android) at root project
- 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:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
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 toimplementation project(':capacitor-android')
Then it doesn’t apply the google-services plugin https://github.com/ionic-team/capacitor/blob/master/android-template/app/build.gradle#L48