
我正在使用Firebase GMS服务开发Android应用程序.
我试着按照他们的教程,我按照他们说的做了项目,下载了Json文件.
但是当我尝试将我的应用程序连接到Firebase时.他们告诉我错误
Could not parse the AndroID Application Module`s Gradle config. Resolve gardle build issuse and/or resync.
但是我觉得我的成绩脚本很完美(我会把它们写在页面的底部)
这是我的成绩构建控制台
Executing tasks: [:app:generateDeBUGSources, :app:mockableAndroIDJar, :app:prepareDeBUGUnitTestDependencIEs, :app:generateDeBUGAndroIDTestSources]Configuration on demand is an incubating feature.WARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for deBUG as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for deBUG as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for deBUG as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for deBUG as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for release as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for release as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for release as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesWARNING: WARNING: Dependency org.Json:Json:20090211 is ignored for release as it may be conflicting with the internal version provIDed by AndroID. In case of problem, please repackage it with jarjar to change the class packagesIncremental java compilation is an incubating feature.:app:preBuild UP-TO-DATE:app:preDeBUGBuild UP-TO-DATE:app:checkDeBUGManifest:app:preReleaseBuild UP-TO-DATE:app:prepareComAndroIDSupportAnimatedVectorDrawable2400library UP-TO-DATE:app:prepareComAndroIDSupportAppcompatV72400library UP-TO-DATE:app:prepareComAndroIDSupportMediarouterV72400library UP-TO-DATE:app:prepareComAndroIDSupportPaletteV72400library UP-TO-DATE:app:prepareComAndroIDSupportSupportV42400library UP-TO-DATE:app:prepareComAndroIDSupportSupportVectorDrawable2400library UP-TO-DATE:app:prepareComGoogleAndroIDGmsPlayServices980library:app:prepareComGoogleAndroIDGmsPlayServicesAds980library:app:prepareComGoogleAndroIDGmsPlayServicesAdslite980library:app:prepareComGoogleAndroIDGmsPlayServicesAnalytics980library:app:prepareComGoogleAndroIDGmsPlayServicesAnalyticsImpl980library:app:prepareComGoogleAndroIDGmsPlayServicesAppindexing980library:app:prepareComGoogleAndroIDGmsPlayServicesAppinvite980library:app:prepareComGoogleAndroIDGmsPlayServicesAuth980library:app:prepareComGoogleAndroIDGmsPlayServicesAuthBase980library:app:prepareComGoogleAndroIDGmsPlayServicesAwareness980library:app:prepareComGoogleAndroIDGmsPlayServicesBase980library:app:prepareComGoogleAndroIDGmsPlayServicesBasement980library UP-TO-DATE:app:prepareComGoogleAndroIDGmsPlayServicesCast980library:app:prepareComGoogleAndroIDGmsPlayServicesCastFramework980library:app:prepareComGoogleAndroIDGmsPlayServicesClearcut980library:app:prepareComGoogleAndroIDGmsPlayServicesDrive980library:app:prepareComGoogleAndroIDGmsPlayServicesfitness980library:app:prepareComGoogleAndroIDGmsPlayServicesGames980library:app:prepareComGoogleAndroIDGmsPlayServicesGass980library:app:prepareComGoogleAndroIDGmsPlayServicesGcm980library:app:prepareComGoogleAndroIDGmsPlayServicesIDentity980library:app:prepareComGoogleAndroIDGmsPlayServicesIID980library:app:prepareComGoogleAndroIDGmsPlayServicesInstantapps980library:app:prepareComGoogleAndroIDGmsPlayServicesLocation980library:app:prepareComGoogleAndroIDGmsPlayServicesMaps980library:app:prepareComGoogleAndroIDGmsPlayServicesNearby980library:app:prepareComGoogleAndroIDGmsPlayServicesPanorama980library:app:prepareComGoogleAndroIDGmsPlayServicesPlaces980library:app:prepareComGoogleAndroIDGmsPlayServicesPlus980library:app:prepareComGoogleAndroIDGmsPlayServicesSafetynet980library:app:prepareComGoogleAndroIDGmsPlayServicesTagmanager980library:app:prepareComGoogleAndroIDGmsPlayServicesTagmanagerAPI980library:app:prepareComGoogleAndroIDGmsPlayServicesTasks980library UP-TO-DATE:app:prepareComGoogleAndroIDGmsPlayServicesVision980library:app:prepareComGoogleAndroIDGmsPlayServicesWallet980library:app:prepareComGoogleAndroIDGmsPlayServicesWearable980library:app:prepareComGoogleFirebaseFirebaseAnalytics980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseAuth980library:app:prepareComGoogleFirebaseFirebaseAuthCommon980library:app:prepareComGoogleFirebaseFirebaseAuthModule980library:app:prepareComGoogleFirebaseFirebaseCommon980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseConfig980library:app:prepareComGoogleFirebaseFirebaseCore980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseCrash980library:app:prepareComGoogleFirebaseFirebaseDatabase980library:app:prepareComGoogleFirebaseFirebaseDatabaseConnection980library:app:prepareComGoogleFirebaseFirebaseIID980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseMessaging980library UP-TO-DATE:app:prepareComGoogleFirebaseFirebaseStorage980library:app:prepareComGoogleFirebaseFirebaseStorageCommon980library:app:prepareComTsengvnTypekit100library UP-TO-DATE:app:prepareDeBUGDependencIEs:app:compileDeBUGAIDl UP-TO-DATE:app:compileDeBUGRenderscript UP-TO-DATE:app:generateDeBUGBuildConfig UP-TO-DATE:app:generateDeBUGResValues UP-TO-DATE:app:processDeBUGGoogleServicesParsing Json file: C:\Users\AJH322\AndroIDStudioProjects\hanyang\app\src\deBUG\Google-services.Json:app:generateDeBUGResources:app:mergeDeBUGResources:app:processDeBUGManifest:app:processDeBUGResources:app:generateDeBUGSources:app:mockableAndroIDJar UP-TO-DATE:app:preDeBUGUnitTestBuild UP-TO-DATE:app:prepareDeBUGUnitTestDependencIEs:app:preDeBUGAndroIDTestBuild UP-TO-DATE:app:prepareDeBUGAndroIDTestDependencIEs:app:compileDeBUGAndroIDTestAIDl UP-TO-DATE:app:processDeBUGAndroIDTestManifest:app:compileDeBUGAndroIDTestRenderscript UP-TO-DATE:app:generateDeBUGAndroIDTestBuildConfig UP-TO-DATE:app:generateDeBUGAndroIDTestResValues UP-TO-DATE:app:generateDeBUGAndroIDTestResources UP-TO-DATE:app:mergeDeBUGAndroIDTestResources:app:processDeBUGAndroIDTestResources:app:generateDeBUGAndroIDTestSourcesBUILD SUCCESSFulTotal time: 3 mins 14.678 secs这是我的gradle脚本(模块)
apply plugin: 'com.androID.application'androID { compileSdkVersion 23 buildToolsversion "24.0.0" defaultConfig { applicationID "com.example.ajh322.hanyang" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionname "1.0" testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } }}dependencIEs { compile filetree(include: ['*.jar'], dir: 'libs') compile 'com.androID.support:appcompat-v7:23.4.0' compile 'com.Google.androID.gms:play-services:9.8.0' compile 'com.tsengvn:Typekit:1.0.0' compile 'com.squareup.okhttp3:okhttp:3.4.2' compile 'com.github.nkzawa:socket.io-clIEnt:0.3.0' testCompile 'junit:junit:4.12'}apply plugin: 'com.Google.gms.Google-services'项目gradle
apply plugin:’com.androID.application’
androID { compileSdkVersion 23 buildToolsversion "24.0.0" defaultConfig { applicationID "com.example.ajh322.hanyang" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionname "1.0" testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } }}dependencIEs { compile filetree(include: ['*.jar'], dir: 'libs') compile 'com.androID.support:appcompat-v7:23.4.0' compile 'com.Google.androID.gms:play-services:9.8.0' compile 'com.tsengvn:Typekit:1.0.0' compile 'com.squareup.okhttp3:okhttp:3.4.2' compile 'com.github.nkzawa:socket.io-clIEnt:0.3.0' testCompile 'junit:junit:4.12'}apply plugin: 'com.Google.gms.Google-services'有谁知道如何通过我的应用程序连接到Firebase?
请拯救我的生命…谢谢
人们说,我更新了我的sdk工具
仍然没有用.
解决方法:
我怀疑你的项目中的gzips可能是罪魁祸首.在项目文件夹中搜索并删除它们,让gradle为您重新同步.
可能的替代方案:
https://github.com/socketio/engine.io-client-java/issues/13
https://github.com/ACRA/acra/issues/159
以上是内存溢出为你收集整理的Android应用无法连接到Firebase全部内容,希望文章能够帮你解决Android应用无法连接到Firebase所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)