java - R cannot be resolved to a variable on CastCompanionLibrary in Eclipse -
i want use castcomponaionlibrary i'm using eclipse , not android studio. created new project , copied castcompanionlibrary sources it. added references to:
- android-support-v4
- android-support-v7-appcompat
- android-support-v7-mediarouter
- google-play-services_lib
in new project these compilation errors:
r cannot resolved variable minicontroller.java /castcompanionlibrary-android-master/src/com/google/sample/castcompanionlibrary/widgets line 87 java problem
it indirectly referenced required .class files videocastcontrolleractivity.java ideas?
you need import android-support-v7-gridlayout existing project , add to: preferences->android->add.
also ...-mediarouter must linked ...-appcompat in order work properly.
once cleaned .xml files (i mean no errors @ all) can clean , should trick.
and don't need v4 long make use of v7 (everything included in newer version).
reference: http://blog.burnayev.com/2009/11/android-developer-tip-regenerating.html
Comments
Post a Comment