从网上下载了AdvancedPagerSlidingTabStrip-master项目工程,想把其中的中viewpager模式导入在一个新建的项目中,在导入Libaray后,添加了相关style,编译就出现如下提示:
Information:Gradle tasks [:Library:generateDebugSources, :Library:mockableAndroidJar, :Library:prepareDebugUnitTestDependencies, :Library:generateDebugAndroidTestSources, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
D:ProjectsAndroidStudioProjectNavigationReceiverappbuildintermediatesresmergeddebugvaluesvalues.xml
Error:(1730, 21) No resource found that matches the given name: attr 'apTabBackground'.
等等一系列的error
上网找了一些解决方法,有人说是版本匹配,修改bulid.gradle中的一下三个值,都统一,但还是报这个错!
compileSdkVersion
compileSdkVersion
targetSdkVersion
刚开始用android studio,不是很会用,希望大牛们帮忙!
PHP中文网2017-04-17 17:54:49
Check whether android:minSdkVersion in AndroidManifest.xml is less than 11