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

前端 未结 5 2025
半阙折子戏
半阙折子戏 2021-02-13 14:54

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         


        
5条回答
  •  迷失自我
    2021-02-13 15:46

    These type of Errors generally occurs when we accidentally close these libraries(by close unrelated projects,etc) which are automatically generated In Project Explorer of Eclipse like:

    • appcompat_v7
    • appcompat_v7_2
    • appcompat_v7_3
    • appcompat_v7_4
    • appcompat_v7_5
    • appcompat_v7_6
    • appcompat_v7_7
    • appcompat_v7_8
    • appcompat_v7_9
    • appcompat_v7_10
    • appcompat_v7_11
    • appcompat_v7_12
    • appcompat_v7_13
    • appcompat_v7_14

    As soon as I open these files,all the errors in my app were vanished !

    If It till then didn't work then do Project -> Properties -> Android -> Is Library -> Add.. -> And add appcompat_v7_*

提交回复
热议问题