Crashlytics error - This app relies on Crashlytics. Please sign up for access

前端 未结 7 1849
温柔的废话
温柔的废话 2021-01-03 18:05

I have two build flavors in gradle but for some reason whenever i change the following flag to false i get the titled error message:

ext.enableCrashlytics =          


        
7条回答
  •  臣服心动
    2021-01-03 18:15

    In My case this got worked.

    so, this is the top level project build.gradle

    buildscript {
        repositories {
            jcenter()
            maven { url 'https://maven.fabric.io/public' }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:1.2.3'
            classpath 'io.fabric.tools:gradle:1.+'
        }
    }
    apply plugin: 'java'
    allprojects {
        repositories {
            jcenter()
            maven { url 'https://maven.fabric.io/public' }
        }
    }
    

    and this is the build.gradle for app module

    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    
    android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"
    
    defaultConfig {
        applicationId "your application package name"
        minSdkVersion 10
        targetSdkVersion 22
    }
    
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    }
    
    dependencies {
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.android.support:support-v4:22.0.0'
    testCompile 'junit:junit:4.12'
    testCompile "org.mockito:mockito-core:1.9.5"
    compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
        transitive = true;
    }
    }
    

    and at last "clean build" and all was set for me.

提交回复
热议问题