moust / phonegap-xapkreader

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

Installing error #2

Open adys123 opened 10 years ago

adys123 commented 10 years ago

Hi. I'm a newbie with phonegap. I'm building an app which will be more than 50mb. So, I searched for a method to slice the app and I found this one.

But the problem is that I can't fully understand the installation process. When I try to run --> cordova plugin add org.apache.cordova.xapkreader --variable MAIN_VERSION=1 --variable PATCH_VERSION=1 --variable FILE_SIZE=1095520 <-- I get the following error in CMD:

d:\workspace\blabla>cordova plugin add org.apache.cordova.xapkre ader Fetching plugin "org.apache.cordova.xapkreader" via plugin registry Error: 404 Not Found: org.apache.cordova.xapkreader at RegClient. (C:\Users\Adrian\AppData\Roaming\npm\node_modules\c ordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-clien t\lib\request.js:268:14) at Request.self.callback (C:\Users\Adrian\AppData\Roaming\npm\node_modules\c ordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:1 48:22) at Request.emit (events.js:98:17) at Request. (C:\Users\Adrian\AppData\Roaming\npm\node_modules\cor dova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:876 :14) at Request.emit (events.js:117:20) at IncomingMessage. (C:\Users\Adrian\AppData\Roaming\npm\node_mod ules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\inde x.js:827:12) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:929:16 at process._tickCallback (node.js:419:13)

can you help me please?

Thank you

moust commented 10 years ago

My bad, I wrote the install process for an installation from the cordova's plugin registry but it's not register in the registry.

You can install it by replacing the plugin name with the github's repository url (https://github.com/moust/phonegap-xapkreader.git).

You should use something like that : cordova plugin add https://github.com/moust/phonegap-xapkreader.git --variable MAIN_VERSION=1 --variable PATCH_VERSION=1 --variable FILE_SIZE=1095520

Further, the installation of this plugin require to manually install some additional external libraries, so the installation can be a little tricky for novice with android development.

andrei345 commented 10 years ago

Hi moust. First of all I want to thank you for this plugin.

I want to ask you why I'm getting this error when I'm typing the code you provided above:

Error: spawn ENOENT at errnoException (child_process.js:1000:11) at Process.ChildProcess._handle.onexit (child_process.js:791:34)

All I did was to copy what you posted and I just edited FILE_SIZE.

Thank you.

moust commented 10 years ago

I can't answer you with so few details about the error.

What is the version of your Cordova installation ? I tried the command I gave you above with Cordova 3.5 and it works well.

andrei345 commented 10 years ago

I have Cordova 3.4 I googled the issue but I could not find an answer.

If you need more details ask me.

Thank you.

moust commented 10 years ago

Hi @andrei345

It seem that this issue is not due to the plugin but to a problem with the android emulator on your installation.

I'm not sure of the cause of the problem but you can look at this discussion on Stackoverflow with the same error message than you : http://stackoverflow.com/questions/20332977/cordova-android-emulator-stopped-working