gpt4 book ai didi

java - 错误 : Manifest merger failed with multiple errors, 查看日志

转载 作者:太空狗 更新时间:2023-10-29 13:54:46 25 4
gpt4 key购买 nike

尝试在我的 Android 项目上安装 OneSignal 的 SDK 后,我注意到在编译时一直发生错误,这阻止了我开始使用该服务。

我的 build.grade(Module:app) 文件:

    apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.2"

defaultConfig {
applicationId "com.sourcey.project"
minSdkVersion 17
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

repositories {
// maven central repository
mavenCentral()

maven { url "https://oss.sonatype.org/content/repositories/snapshots" }

}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')

compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.microsoft.azure:azure-mobile-android:3.1.0'
compile 'com.microsoft.azure.android:azure-storage-android:0.6.0@aar'
compile 'com.android.support:design:24.2.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.afollestad.material-dialogs:core:0.9.1.0'
compile 'com.afollestad.material-dialogs:commons:0.9.1.0'

**compile 'com.onesignal:OneSignal:3.+@aar'
compile 'com.google.android.gms:play-services-gcm:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.google.android.gms:play-services-analytics:10.0.1'**
//Without including these 4 rows, the project building process goes perfectly.


testCompile 'junit:junit:4.12'
}


apply plugin: 'com.google.gms.google-services'

谢谢大家的帮助!

最佳答案

修复:忘记添加-

  manifestPlaceholders = [onesignal_app_id: "PUT YOUR ONESIGNAL APP ID HERE",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "REMOTE"]

关于java - 错误 : Manifest merger failed with multiple errors, 查看日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40936071/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com