我尝试添加 AppLovin 依赖项,但出现如下错误:
错误:无法解析“:app@debug/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:app
错误:无法解析“:app@debugAndroidTest/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:app
错误:无法解析“:app@debugUnitTest/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:app
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.11.0, 0.99.99]'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories {
maven { url 'https://maven.google.com' }
}
apply plugin: 'com.android.application'
repositories {
jcenter()
}
repositories {
// You can also use jcenter if you prefer
mavenCentral()
}
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.example.application'
minSdkVersion 21
targetSdkVersion 28
versionCode 2
versionName '1.3'
manifestPlaceholders = [
onesignal_app_id: '1234567891011121314',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'REMOTE']
}
lintOptions {
disable 'MissingTranslation'
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
犯罪嫌疑人X
相关分类