both 2 lines shows the support library should not the different version 25 then compile sdk version 24...
android { compileSdkVersion 24 buildToolsVersion "25.0.2"
defaultConfig {
applicationId "waqar.constitutionofindia"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
将compileSdkVersion
设置为 25 或将库更改为适当的 24 API 级别构建
You can write + like below, it will automatically pick version
compile 'com.android.support:appcompat-v7:+'
similary for other one too
When this Error shows up, you should always check all your activities.java files and make sure you have no error. that's where it always originates from.
And if all is well then simply change your compile SDK version like it's mentioned above.
First change compileSdkVersion
to the latest SDK version and then use
implementation 'com.android.support:design:<latest_version>'
Example:
compileSdkVersion 28
dependencies
{
implementation 'com.android.support:design:28.0.0'
}
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.