Search code examples
androideclipsechromecast

Cannot compile CastCompanionLibrary in Eclipse


I want to use CastComponaionLibrary but I'm using Eclipse and not Android Studio. So I created a new project and copied all CastCompanionLibrary sources into it. I also added references to:

  • android-support-v7-appcompat
  • android-support-v7-mediarouter
  • google-play-services_lib

In this new project I get these compilation errors:

  • The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.ActionBarDrawerToggle$DelegateProvider. Fix the build path then try building this project
  • The type android.support.v4.app.ActionBarDrawerToggle$DelegateProvider cannot be resolved. It is indirectly referenced from required .class files VideoCastControllerActivity.java

any ideas? Thanks!


Solution

  • First, you don't need to include v4 library since that is part of the v7 libraries, so remove that. Then follow the instructions in this G+ community post