Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1

后端 未结 6 1432
慢半拍i
慢半拍i 2020-12-04 18:11

Got the above error after downloading L preview release version in Android Studio, when my project had minSdkVersion 19.

Furthermore, when

6条回答
  •  无人及你
    2020-12-04 18:23

    The way that worked for me was to install the Android Studio Beta (Not Preview Release, the Beta was launched today as part of IO).

    Uninstall the preview release and install the Beta and open your project. It will ask you to use project SDK or Studio SDK, use Android Studio's SDK.

    Go to your projects local.properties file and where you have sdk.dir ensure that any backslashes () are doubled up .e.g. \.

    Go to Project Structure > SDK and ensure this pointing to the Android SDK on my Pc it was C:\Program Files(x86)\Android\android-studio\SDK.

    Then in your projects and any libraries you have build.gradle files where you have

    compile 'com.android.support:support-v4 Change it to compile 'com.android.support:support-v4:20+

    Resync the gradle files and all fixed

提交回复
热议问题