Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The import android.support.v7.app.MediaRouteActionProvider cannot be resolved

I am trying to use GoogleMap V2 .But i am getting error on import these :

import android.support.v7.app.MediaRouteActionProvider;
import android.support.v7.media.MediaRouteSelector;
import android.support.v7.media.MediaRouter;
import android.support.v7.media.MediaRouter.RouteInfo;

And the error is

The import android.support.v7.app.MediaRouteActionProvider cannot be resolved

Here is the screen shot of the library that i have added

enter image description here

What i have to do .I have tried to import android\support\v7 By Build path .But it is not resolving my issue in there any way so that i can resolve these errors.

like image 431
Developer Avatar asked Feb 19 '14 09:02

Developer


2 Answers

It looks like you have added gridlayout.jar to the projects lib folder.

Its a library project with resources. You need to reference the library project in your android projet

This library is located in the <sdk>/extras/android/support/v7/gridlayout/ directory after you download the Android Support Libraries.

Follow Adding libraries with resources

http://developer.android.com/tools/support-library/setup.html#libs-with-res

like image 65
Raghunandan Avatar answered Oct 02 '22 13:10

Raghunandan


had the same problem and found that the link in my project to the appcomcat_v7 project is broken (right-click project and choose properties, then head to the Android tab)...

i removed and then added the correct project and i was good to go...

enter image description here

like image 31
SoliQuiD Avatar answered Oct 02 '22 14:10

SoliQuiD