videostream / cordova-chromecast

Chromecast running in Cordova
117 stars 58 forks source link

Installing Java Dependencies #6

Closed JudeOsborn closed 10 years ago

JudeOsborn commented 10 years ago

Sorry if this is slightly newbish, but I'm not an Android developer, and am really struggling with the library project dependencies. I spent nearly a full day trying to figure out how to get them to install, but I always get " com.google.android.gms.cast does not exist" (along with billions of other dependency errors) when running "cordova run android".

Most of the info I've found on line has been related to Eclipse and Android Studio, but I did find a bit of info about how to install libraries via the command line. What I'm doing is copying the three libraries from the SDK folder to my Cordova folder and then running this inside each folder:

android update lib-project --target android-19 -p .

It's not clear to me exactly where I need to copy these folders, but the commands appear to run successfully. I've also found information about attaching appcompat to mediarouter by adding a path to project.properties. However, no matter what I do or how I do it I get the same error. Is there any chance you might be able to help me get these dependencies going? My team is really interested in this plug-in, and is likely to use it extensively if we can get it working. Thanks VERY much.

matbee-eth commented 10 years ago

@grahamkennery

JudeOsborn commented 10 years ago

Looks like I finally got the dependencies running. Had to modify project.properties to include the libraries like this:

android.library.reference.1=CordovaLib android.library.reference.2=libs/google-play-services_lib android.library.reference.3=libs/appcompat android.library.reference.4=libs/mediarouter target=android-19