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

Installing error #2

Open
adys123 opened this issue Jul 12, 2014 · 5 comments
Open

Installing error #2

adys123 opened this issue Jul 12, 2014 · 5 comments

Comments

@adys123
Copy link

adys123 commented Jul 12, 2014

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
Copy link
Owner

moust commented Jul 15, 2014

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
Copy link

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
Copy link
Owner

moust commented Aug 1, 2014

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
Copy link

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
Copy link
Owner

moust commented Aug 25, 2014

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

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

3 participants