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
Cannot compile CastCompanionLibrary in Eclipse
-
22-06-2023 - |
Domanda
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!
Soluzione
Altri suggerimenti
I don't know why but I solved this problem:
- In android.support.vX -> Properties -> Java Build Path -> Projects -> Add
- Choose the related project/s to the android.support.vX
- Press OK
- Do the same and remove the project/s added
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow