moust / phonegap-xapkreader

Cordova plugin to access files in APK Expansion Files
13 stars 17 forks source link

xapkreader PLUGIN: FAILED TO BUILD #17

Open ourjouwan opened 9 years ago

ourjouwan commented 9 years ago

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 commented 9 years ago

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 commented 8 years ago

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

moust commented 8 years ago

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 commented 8 years ago

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