当minifyEnabled为真时,无法使用Parse Crash Report构建我的应用程序

时间:2015-05-28 03:30:53

标签: android parse-platform gradle crash-reports

我正在尝试构建一个应用程序。但是当我将minifyEnabled设置为true时,它在Release中失败了。以下是错误消息:

  

:app:parseUploadSymbolsRelease FAILED   错误:任务':app:parseUploadSymbolsRelease'的执行失败。   android / app / build / outputs / mapping / release / mapping.txt(没有这样的文件或目录)

我的build.grade:

apply plugin: 'com.android.application'

android {

    signingConfigs {
        release {
            keyAlias 'mykey'
            keyPassword 'mypass'
            storeFile file('keystore')
            storePassword 'mypass'
        }
    }

    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.company.app"
        minSdkVersion 9
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
        signingConfig signingConfigs.release
    }

    buildTypes {

        release {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
            proguardFile 'proguard-rules.pro'
            debuggable false
            minifyEnabled true
        }
        debug {
            debuggable true
            proguardFile 'proguard-rules.pro'
            minifyEnabled false
        }
    }
}

repositories {
    maven { url 'file:////Users/Shared/Mylib/AarRepository' }
    mavenCentral()
}

dependencies {
    compile fileTree(dir: 'libs', include: 'Parse-*.jar')
    compile files('libs/ParseCrashReporting-1.8.3.jar')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.android.support:recyclerview-v7:21.0.3'
    compile 'com.android.support:cardview-v7:21.0.3'
    compile 'com.facebook.android:facebook-android-sdk:3.23.+'
    compile 'com.mcxiaoke.volley:library:1.0.+'
    compile 'com.jakewharton:disklrucache:2.0.2'
    compile 'com.google.code.gson:gson:2.2.4'
    compile 'com.company.library:company-library:1.0.4@aar'
    compile 'com.parse.bolts:bolts-android:1.+'
    compile files('libs/YouTubeAndroidPlayerApi.jar')
}

// to enable auto load of symbol file for crash report
buildscript {
    repositories {
        mavenCentral()
        maven {
            url 'https://maven.parse.com/repo'
        }
    }
    dependencies {
        classpath 'com.parse.tools:gradle:1.+'
    }
}

apply plugin: 'com.parse'

parse {
    applicationId "myappid"
    masterKey "mymasterkey"

    uploadSymbols = ['release']
    retries 3
}

如何解决这个问题?有人可以帮忙吗?感谢

0 个答案:

没有答案