Imported module in Android Studio can't find imported class

前端 未结 7 1694
春和景丽
春和景丽 2020-12-28 12:33

I recently downloaded the ViewPagerIndicator library and imported it into android studio. After adding it to my project I get a rendering error \"The following classes could

相关标签:
7条回答
  • 2020-12-28 13:19

    In my case, I did add in app gradle:

    // Nearly deprecated.
    compile project(':NameOfTheLibProject')
    // Or
    implementation project(':NameOfTheLibProject')
    

    but it only works when I change

    compileSdkVersion 
    minSdkVersion 
    targetSdkVersion 
    

    in app and the other modules are the same.

    0 讨论(0)
提交回复
热议问题