Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Android Build failure due to Cordova sub-dependencies. #292

Open
ghhv opened this issue Mar 7, 2018 · 1 comment
Open

Android Build failure due to Cordova sub-dependencies. #292

ghhv opened this issue Mar 7, 2018 · 1 comment

Comments

@ghhv
Copy link

ghhv commented Mar 7, 2018

During a build of the files generated by PWABuilder on Android Studio 3, there are numerous errors such as

Unable to resolve dependency for ':@debugAndroidTest/compileClasspath': Could not resolve project :CordovaLib.
Could not resolve project :CordovaLib.
Required by:
project :
Project : declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :CordovaLib.

This is caused by the default lines in Android build.gradle
debugCompile project(path: "CordovaLib", configuration: "debug")
releaseCompile project(path: "CordovaLib", configuration: "release")

lines 242 and 243.

To resolve, comment these out and replace with
compile project(':CordovaLib')

Solution found via
https://stackoverflow.com/questions/47023068/unable-to-run-ionic-app-after-update-to-android-studio-3-0

Can the build files generated not include these as default? Or is the correct fix to install the dependencies?

@lucaasrojas
Copy link
Contributor

@ghhv Thanks for opening a new issue. Could you check if the issue continues?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants