简体   繁体   中英

Getting error at running my app

I am new at Android programming.I have just added some texts into my app just to learn it.But I couldnt run my app.It shows an error like this:

Error:Execution failed for task :app:processDebugManifest .

Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.android.support:appcompat-v7:24.2.0] D:\\MyAndroidProjects\\MyApplication\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.0\\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage**

This was my first post.Sorry if I have done something wrong.I would be grateful if you could correct me.Thanks

The error explains the problem fairly clearly:

ses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.android.support:appcompat-v7:24.2.0]

The AppCompat v7 library has a minimum SDK version of 9. Thus you cannot support anything lower than 9 in your application.

Change your application's minSdkVersion to 9, and it will compile fine.

If you want to support API level 8 (you probably don't), then you either need to use an older version of AppCompat that supports it, or not use AppCompat at all.

将最低SDK版本更改为9,它将可以正常工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM