gitawego / ChromecastCordova

ChromeCast plugin for Cordova
http://www.sesamtv.com/index.php
MIT License
9 stars 5 forks source link

Build failed #1

Open begeeben opened 10 years ago

begeeben commented 10 years ago

Thanks for the plugin! Sadly I couldn't get it work. Had followed the instructions and fixed library references but still no luck. Here's the error log:

-compile:
    [javac] Compiling 4 source files to /Users/asail/Sites/9x9/9x9_player_phonegap/phonegap/platforms/android/ant-build/classes
    [javac] /Users/asail/Sites/9x9/9x9_player_phonegap/phonegap/platforms/android/src/com/sesamtv/cordova/chromecast/ChromeCast.java:768: cannot find symbol
    [javac] symbol  : method setDebuggingEnabled()
    [javac] location: class com.google.android.gms.cast.Cast.CastOptions.Builder
    [javac]                 apiOptionsBuilder.setDebuggingEnabled();
    [javac]                                  ^
    [javac] 1 error

Am I missing something that's not mentioned in the repo? Thanks!

begeeben commented 10 years ago

I tried commented out line 768 in ChromeCast.java and line 210, 238, 262 in MediaPlayer.java then the build succeed. But the apk couldn't run on android device.