导入模块模糊进入项目,现在我遇到了Gradle Sync问题。 模块:https://github.com/wasabeef/Blurry
错误:无法获取类型为com.android.build.gradle.LibraryExtension的对象的未知属性'COMPILE_SDK_VERSION'。
blurry / build.gradle:
android {
compileSdkVersion COMPILE_SDK_VERSION as int
defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
}
}
我尝试手动输入版本:
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
}
}
它不起作用
blurry / build.gradle:
apply plugin: 'com.android.library'
android {
compileSdkVersion COMPILE_SDK_VERSION as int
defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
}
}
ext {
bintrayRepo = 'maven'
bintrayName = 'blurry'
bintrayUserOrg = 'wasabeef'
publishedGroupId = 'jp.wasabeef'
libraryName = 'blurry'
artifact = 'blurry'
libraryDescription = 'Easy blur for Android'
siteUrl = 'https://github.com/wasabeef/Blurry'
gitUrl = 'https://github.com/wasabeef/Blurry.git'
issueUrl = 'https://github.com/wasabeef/Blurry/issues'
libraryVersion = VERSION_NAME
developerId = 'wasabeef'
developerName = 'Wasabeef'
developerEmail = 'dadadada.chop@gmail.com'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
apply from: 'https://gist.githubusercontent.com/wasabeef/cf14805bee509baf7461974582f17d26/raw/bintray-v1.gradle'
apply from: 'https://gist.githubusercontent.com/wasabeef/cf14805bee509baf7461974582f17d26/raw/install-v1.gradle'
我需要做什么才能使应用程序运行?