agamemnus / cordova-plugin-xapkreader

Easily access Google Play APK expansion file data.
32 stars 55 forks source link

Build issues #128

Open tastesminty opened 6 years ago

tastesminty commented 6 years ago

I'm getting the build error “

Could not resolve all task dependencies for configuration ':debugCompileClasspath'. Could not resolve project :com.flyingsoftgames.xapkreader:library. Required by: project : > project :com.flyingsoftgames.xapkreader:downloader_library Project :com.flyingsoftgames.xapkreader:downloader_library declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :com.flyingsoftgames.xapkreader:library. “

Here’s what I’ve tried: • Creating a test Ionic project • Creating a test Cordova project • Downgrading to Cordova 6.5 • Trying the patch mentioned in the plugin ‘test project instructions’

Add this to /platforms/android/project.properties: android.library.reference.2=../../plugins/com.flyingsoftgames.xapkreader/android-sdk/extras/google/play_apk_expansion/downloader_library

• Applying the patches described here • Building as ‘release’ vs debug

Does anybody have any insight into the problem? Thanks in advance.

Cordova 8.0, Cordova Android 6.4

agamemnus commented 6 years ago

I might have seen someone write about this issue before, but I don't know/remember how you would fix it.

On Tue, Jun 12, 2018, 6:23 PM Danny Navarro notifications@github.com wrote:

I'm getting the build error “

Could not resolve all task dependencies for configuration ':debugCompileClasspath'. Could not resolve project :com.flyingsoftgames.xapkreader:library. Required by: project : > project :com.flyingsoftgames.xapkreader:downloader_library

Project :com.flyingsoftgames.xapkreader:downloader_library declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :com.flyingsoftgames.xapkreader:library. “

Here’s what I’ve tried: • Creating a test Ionic project • Creating a test Cordova project • Downgrading to Cordova 6.5 • Trying the patch mentioned in the plugin ‘test project instructions’ Add this to /platforms/android/project.properties:

android.library.reference.2=../../plugins/com.flyingsoftgames.xapkreader/android-sdk/extras/google/play_apk_expansion/downloader_library • Applying the patches described here https://github.com/agamemnus/cordova-plugin-xapkreader/issues/116 • Building as ‘release’ vs debug

Does anybody have insight?

Cordova 8.0, Cordova Android 6.4

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/agamemnus/cordova-plugin-xapkreader/issues/128, or mute the thread https://github.com/notifications/unsubscribe-auth/ADFJWDKdjmHlntYmtxyjcJSB0nE9Ggc-ks5t8D9IgaJpZM4UlP2Y .

lfwells commented 6 years ago

Also getting this after downloading the project today to try and use it

agamemnus commented 6 years ago

Try this:

https://stackoverflow.com/questions/33718663/gradle-error-configuration-declares-dependency-which-is-not-declared

On Tue, Jun 12, 2018, 8:18 PM lfwells notifications@github.com wrote:

Also getting this after downloading the project today to try and use it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/agamemnus/cordova-plugin-xapkreader/issues/128#issuecomment-396774418, or mute the thread https://github.com/notifications/unsubscribe-auth/ADFJWEADIAPpkaLXSV7Dn8E5fFIC1BQhks5t8FpxgaJpZM4UlP2Y .

tastesminty commented 6 years ago

Hello, Many thanks for your prompt response & ideas. I tried changing 'build-extras.gradle' (three locations) to the format mentioned in the stackoverflow link, to no avail.

Do the Cordova 6.5 installation instructions hold for more recent versions of Cordova? They differ from those mentioned in the plugin's ‘test project instructions’.

Thanks.

agamemnus commented 6 years ago

The test project instructions are old and probably doesn't work anymore.