简体   繁体   English

当我尝试使用Google crashlytics时,我一直收到错误消息

[英]i keep getting an error when i try to use google crashlytics

I am trying to use Crashlytics in my app but keep getting an error saying 我正在尝试在我的应用程序中使用Crashlytics,但始终收到错误提示

Error:(30, 1) A problem occurred evaluating root project 'CodeX_TeaXt'. 错误:(30,1)评估根项目'CodeX_TeaXt'时出现问题。 Could not find method buildscripts() for arguments [build_dujqhmp6npuv4v2dkd04dm37r$_run_closure3@30d25365] on root project 'CodeX_TeaXt' of type org.gradle.api.Project. 在根类型为org.gradle.api.Project的项目CodeX_TeaXt上找不到参数[build_dujqhmp6npuv4v2dkd04dm37r $ _run_closure3 @ 30d25365]的方法buildscripts()。

And here's my code for the build.gradle file : 这是我的build.gradle文件代码:

allprojects {
    repositories {
        google()
        jcenter()}
    }


    task clean(type: Delete) {
    delete rootProject.build``Dir}


    buildscripts{
    repositories {
        // ...
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        // ...
        classpath 'io.fabric.tools:gradle:1.24.4'
    }
}

And: 和:

allprojects {
    // ...
    repositories {
        // ...
        maven {
            url 'https://maven.google.com/'
        }
    }
}

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

dependencies {
    // ...
    compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
        transitive = true
    }
    compile 'com.google.firebase:firebase-core:11.6.2'
}

I am also having a problem using performance, test lab, so help 我在使用性能和测试实验室时也遇到了问题,请帮助

You should move: 您应该移动:

   maven {
       url 'https://maven.google.com/'
   }

from you app-level build.gradle to you project-level build.gradle based on the instructions in: https://firebase.google.com/docs/crashlytics/get-started 根据https://firebase.google.com/docs/crashlytics/get-started中的说明从您的应用程序级别build.gradle到项目级别build.gradle

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试用于语句时出现“死代码”错误 - Getting “Dead Code” error when i try use for statement 嘿家伙我尝试上传生成的apk到谷歌游戏商店,并不断得到这个错误任何想法 - hey guys I try to upload a generated apk to google play store and keep getting this error any ideas 当我尝试在 android studio 上运行我的颤振应用程序时,请一直收到此错误 - Please I keep getting this error when I try to run my flutter app on android studio 当我尝试安装pushwoosh并编译为android时,始终会收到错误消息:Cordova - Keep getting error when I try install pushwoosh and compile to android: Cordova 我尝试下载文件时出错 - Getting error when I try to download file 我尝试在Android中使用片段时出错 - Error when i try to use a fragment in Android 当我尝试在地图中使用EditText时出错 - Error when i try Use EditText in map 我在使用webintent时遇到错误 - I keep getting an error when using webintent 确保启用了“Google Maps Android API v2”。 尝试实施 Google 地图时出现此错误 - Ensure that the "Google Maps Android API v2" is enabled. I am getting this error when I try to Implement Google Maps 当我尝试加载图像资产时不断收到此错误“发生异常。 FlutterError(无法加载资产:assests/1.png)” - Keep getting this error when i try to load an image asset “Exception has occurred. FlutterError (Unable to load asset: assests/1.png)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM