Android Studio 版本:0.8.2 beta

本文介绍了解决导入工程出现“cannot be smaller than version L ”的解决方法

 

报错:

[html] view plaincopy
 
  1. Error:Execution failed for task ':app:processDebugManifest'.  
  2. > Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1  

 

 

解决:

很简单,这个是4.21的V4兼容库的问题,修改build.gradle :

 

[javascript] view plaincopy
 
  1. dependencies {  
  2.     compile 'com.android.support:support-v4:+'  
  3.     compile fileTree(dir:'ilbs',include:['*.jar'])  
  4. }  


 

 

[html] view plaincopy
 
  1. dependencies {  
  2.     compile 'com.android.support:support-v4:20.+'  
  3.     compile fileTree(dir:'ilbs',include:['*.jar'])  
  4. }  


现在总算明白了“+”的意思了吧

如果还没有解决,估计是你导入的eclipse工程/外部库的lib文件夹里面有这个v4文件,删除掉,并修改lib目录下的build.gradle为 v4.20.+

相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-11-12
  • 2021-11-08
  • 2021-10-21
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-02-12
  • 2021-04-04
  • 2022-01-08
  • 2021-05-11
  • 2021-07-08
  • 2021-10-22
相关资源
相似解决方案