我正在尝试为 Android 实现 Google 登录,并且我正在按照以下说明进行操作
https://developers.google.com/identity/sign-in/android/start-integrating https://developers.google.com/identity/sign-in/android/start-integrating
但是在构建应用程序时,我收到以下错误。
信息:Gradle 任务 [:app:generateDebugSources,
:app:generateDebugAndroidTestSources,:app:assembleDebug]
:app:preBuild 最新 :app:preDebugBuild 最新
:app:checkDebugManifest :app:preReleaseBuild 最新
:app:prepareComAndroidSupportAppcompatV72301库最新
:app:prepareComAndroidSupportDesign2301Library 最新
:app:prepareComAndroidSupportSupportV42301库最新
:app:prepareComGoogleAndroidGmsPlayServicesAds810Library 最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAnalytics810Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library
最新:app:prepareComGoogleAndroidGmsPlayServicesBase810Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesBasement810Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesIdentity810Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesMeasurement810Library
最新:app:prepareComGoogleAndroidGmsPlayServicesPlus810Library
最新:app:prepareDebugDependency:app:compileDebugAidl
最新的:app:compileDebugRenderscript 最新的
:app:generateDebugBuildConfig 最新 :app:generateDebugAssets
最新的:app:mergeDebugAssets 最新的
:app:generateDebugResValues 最新 :app:processDebugGoogleServices
找不到包名称“com.questo.rugved.questo”的匹配客户端
:app:generateDebugResources :app:mergeDebugResources 最新
:app:processDebugManifest 最新 :app:processDebugResources
最新的:app:generateDebugSources 最新的
:app:preDebugAndroidTestBuild 最新
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl 最新
:app:processDebugAndroidTestManifest 最新
:app:compileDebugAndroidTestRenderscript 最新
:app:generateDebugAndroidTestBuildConfig 最新
:app:generateDebugAndroidTestAssets 最新
:app:mergeDebugAndroidTestAssets 最新
:app:generateDebugAndroidTestResValues 最新
:app:generateDebugAndroidTestResources 最新
:app:mergeDebugAndroidTestResources 最新
:app:processDebugAndroidTestResources 最新
:app:generateDebugAndroidTestSources 最新
:app:compileDebugJavaWithJavac 最新 :app:compileDebugNdk
最新的:app:compileDebugSources 最新的
:应用程序:transformClassesAndResourcesWithExtractJarsForDebug
:app:transformClassesWithDexForDebug 意外的顶级异常:
错误:任务执行失败
':app:transformClassesWithDexForDebug'。
com.android.build.transform.api.TransformException:
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException:处理'命令
'/usr/lib/jvm/java-7-oracle/bin/java'' 以非零退出完成
值 2 信息:构建失败信息:总时间:1 分钟 39.994
秒 信息:1 错误信息:0 警告信息:参见
控制台完整输出
我的最高等级是
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:1.4.0-beta3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
My app level gradle is
<pre>
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
defaultConfig {
applicationId "com.questo.rugved.questo"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.+'
compile 'com.google.android.gms:play-services-identity:8.1.0'
compile 'com.google.android.gms:play-services-plus:8.1.0'
}
请帮忙。
也许这个链接对您有帮助。link https://stackoverflow.com/questions/32798816/unexpected-top-level-exception-com-android-dex-dexexception-multiple-dex-files
这对我有帮助:
android {
...
defaultConfig {
...
multiDexEnabled true
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)