我尝试添加 AppLovin 依赖项,但出现如下错误:错误:无法解析“:app@debug/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:app错误:无法解析“:app@debugAndroidTest/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:app错误:无法解析“:app@debugUnitTest/compileClasspath”的依赖关系:找不到“com.applovin:applovin-sdk:+”。显示详细信息受影响的模块:appbuildscript { 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' } }}
1 回答
犯罪嫌疑人X
TA贡献2080条经验 获得超4个赞
在您的 build.gradle 文件中,从具有applovin-sdk实现依赖项的行中删除引号(" ") 。
从:
dependencies { implementation "'com.applovin:applovin-sdk:+'" }
到:
dependencies { implementation 'com.applovin:applovin-sdk:+' }
添加回答
举报
0/150
提交
取消