Hi
I need to make an APK for my ionic project( not the release build). I used android studio 3.0 . After adding android platform, i imported the android project inside platform folder in android studio. It automatically starts building the project as soon project is imported. After some processing i got the folllowing errors
Unable to resolve dependency for ‘:@debug/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
i m including the screenshots of errors
Please help me kknow the exact procedure to make the apk of an ionic 3 project. My ionic info is as following:
Unable to resolve dependency for ‘:@debug/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.
The related problem is described on this Github Issue on the Cordova-Android plugin entitled Cordova generates build.gradle with deprecated “compile” dependencies.
How to fix
Open package.json on your ionic application’s root project folder
Update your cordova-android to 8.0.0.
run npm install to resolve the dependencies.
That should contain the patch to fix that problem.