Imported module in Android Studio can't find imported class

前端 未结 7 1696
春和景丽
春和景丽 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:03

    First of all, you must import your library project by following that path:

    File --> New --> Import Module
    

    After you have imported the library project successfully, you must check your build.gradle file inside your project's folder if the following line is present at the "dependencies" section:

    implementation project(':NameOfTheLibProject')
    

    Then your project must be built successfully.

提交回复
热议问题