好吧,所以我下载了android支持包并安装了v4, 但由于某种原因,我需要的 Activity 都无法导入。这是我第一次尝试使用支持包,而且我只进行了 4 周的 Android 编程,如果答案是显而易见的,那么我很抱歉。
最佳答案
Right click on your project
Choose Build Path -> Configure Build Path -> Select Java Build Path -> Go to Libraries -> Click on Add External Jars.. -> Then Choose android-support-v4.jar -> Then Press on OK.
Where to find android-support-v4.jar file.
Got to the android installation folder
android-Sdk -> extras -> android -> support -> v4 -> (In that you'll find) android-support-v4.jar.
关于java - ViewPager/PagerAdapter导入资源的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11641955/