Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xapkreader PLUGIN: FAILED TO BUILD #17

Open
ourjouwan opened this issue Dec 30, 2014 · 4 comments
Open

xapkreader PLUGIN: FAILED TO BUILD #17

ourjouwan opened this issue Dec 30, 2014 · 4 comments

Comments

@ourjouwan
Copy link

Hi,
I have a PhoneGap App, and I’m using PhoneGap Build. Recently I wanted to add an APK expansion of my file, since my App size > 50MB.
Apparently PhoneGap Build doesn’t have a plugin to manage an APK expansion file for android I was forced to use cordova CLI because there is a plugin called xapkreader.
Now I am using cordova CLI, My App is well compiled and everything going well. Now I added this plugin and it is fine. The problems begin when I reference the 2 libraries Downloader Library and APK Expansion Zip Library.
In fact, the problem is when I compile my App (cordova build android) I have the issue:
BUILD FAILED
C:\Users\VAIO\Desktop\android\tools\ant\build.xml:577: Failed to resolve library path: C:\Users\VAIO\Desktop\android/extras/google/play_licensing\library

  1. First, in my SDK i don’t have /extras/google/market_apk_expansion/downloader_library/ as the document say, but I have \extras\google\play_apk_expansion\downloader_sample
    Same, i don’t have /extras/google/market_licensing/ but I have \extras\google\play_licensing
    I open my sdk manager, all API and extras are updated.
  2. Instead of that, If I use these references and I added to my application like the following:
    android update project --path C:\BeirutMuseumV2\platforms\android --library C:\Users\VAIO\Desktop\android\extras\google\play_licensing --library C:\Users\VAIO\Desktop\android\extras\google\play_apk_expansion\downloader_library
    And If I open my project.propreties I found the 2 lines :
    android.library.reference.2=C:\Users\VAIO\Desktop\android/extras/google/play_licensing\library
    android.library.reference.3=C:\Users\VAIO\Desktop\android/extras/google\play_apk_expansion\downloader_library

so when I compile my App I have the issue: BUILD FAILED
C:\Users\VAIO\Desktop\android\tools\ant\build.xml:577: Failed to resolve library path: C:\Users\VAIO\Desktop\android/extras/google/play_licensing\library

Please can I have an idea because it is urgent 

Thanks

@andreszs
Copy link

Welcome to the amazing world of Failed Builds. I managed to get rid of my first Build Failed error by updating to JDK 8 and reverting PhoneGap+Cordova to the last version of the 3.6.3 series. For help in reverting your version, see:
http://iphonedevlog.wordpress.com/2014/06/25/updating-and-reverting-to-different-cordova-phonegap-versions/

Also, if the problem happens as soon as you add the xapkreader plugin, try switching to older versions gradually until you make sure no older version works. You could also look for replacements of the Downloader and APK Expansion Zip libraries.

@lumierephoto
Copy link

@andreszs Unfortunately, sudo npm install -g [email protected] doesn't work anymore. I don't know if it's because my version of node is 4.0.

@moust
Copy link
Owner

moust commented Sep 21, 2015

As said in the README file, build seem fail when referencing a library in project.properties with its absolute path.
Try to change that and rebuild.

@lumierephoto
Copy link

@moust I'm not sure how to write an absolute path. Can you provide an example of how it should be written?

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

No branches or pull requests

4 participants