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

Unable to install and/or build (Android) #15

Open
45kb opened this issue Jan 17, 2015 · 9 comments
Open

Unable to install and/or build (Android) #15

45kb opened this issue Jan 17, 2015 · 9 comments

Comments

@45kb
Copy link

45kb commented Jan 17, 2015

Hello, sorry for the issue, i get problems i just tried installing plugin:

cordova plugin add com.keith.cordova.plugin.canvascamera

i get this error:

Error: 404 Not Found: com.keith.cordova.plugin.canvascamera
at RegClient. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22)
at Request.emit (events.js:98:17)
at Request. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)

So i used this:

cordova plugin add https://github.com/donaldp24/CanvasCameraPlugin.git && cordova prepare

But when i launch:

cordova build android && cordova run android

i get error:

BUILD FAILED
/usr/local/opt/android-sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/usr/local/opt/android-sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 3 seconds

Any clue?

@45kb 45kb changed the title Unable to install or build with the plugin Unable to install or build (Android) Jan 17, 2015
@45kb 45kb changed the title Unable to install or build (Android) Unable to install and/or build (Android) Jan 17, 2015
@gmccrackin
Copy link

Have you checked if its #7.

@45kb
Copy link
Author

45kb commented Jan 17, 2015

@gmccrackin Thank you but i don't get it, is that fixed somewhere? Should i try something?

@stephan-nordnes-eriksen

+1 The specific error:

[javac] /path/to/my/project/platforms/android/src/com/keith/canvascameraplugin/CanvasCameraView.java:87: error: package R does not exist
....

There are many of these "package R does not exist". From the file mentioned above, i see setContentView(R.layout.canvascamera);. This R is not there. Digging a bit around I suspect this is the issue: http://stackoverflow.com/questions/12986301/package-r-does-not-exist. However, when I try to add import android.R; I get new errors. Is it possibly not android.R that is being used?

@JakeRuth
Copy link

JakeRuth commented Feb 6, 2015

+1
I am somewhat new to phonegap. However, linking to your plugin in my config.xml file leaves phonegap build tool in an error state for Android with no meaningful error message.

I am sure of this because I built my project before putting in the line in the config.xml and everything build fine, however changing just one line and adding the plugin link in my config.xml breaks the build. That one line for sure, that was the only change I made.

If this could be fixed that would be great, I am really in need of an in app camera for my app.

@JakeRuth
Copy link

JakeRuth commented Feb 6, 2015

Thanks for the reply @stephan-nordnes-eriksen , however I believe that this problem resides in adroid only. There appears to be a PR for it already that has been outstanding for a while https://github.com/donaldp24/CanvasCameraPlugin/pull/7/files

Unfortunately it appears that the owner of this repo hasn't logged in for a while. I am debating on releasing another version of the plugin but it would be better if it got re-released by someone who would be able to handle issues and keep it in working order.

@gmccrackin
Copy link

I think this is a great idea. I would like to do it but I don't think I have the time. If someone does it thought I would try and help contribute as much as possible.

@stephan-nordnes-eriksen
Copy link

@JakeRuth Woops! I posted that in the wrong comment field! Sorry. It is totally for another plugin. Sorry

@JakeRuth
Copy link

Its totally fine @stephan-nordnes-eriksen :)
So sometime this week I will (hopefully) look into re launching this plugin with the merge request #7 incorporated in master. However in the long run I am probably going to switch my app code over to React Native, which is coming out soon. React Native should be fixing many of the problems phonegap presents so hopefully these headaches will go away.

@gmccrackin
Copy link

I am also excited to see React Native released! I think it will solve many of the problems I have with cordova also!

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