Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/401.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/181.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';升级到Java8后,不要使用crashlytics发布项目_Java_Android_Crashlytics_Twitter Fabric - Fatal编程技术网

Can';升级到Java8后,不要使用crashlytics发布项目

Can';升级到Java8后,不要使用crashlytics发布项目,java,android,crashlytics,twitter-fabric,Java,Android,Crashlytics,Twitter Fabric,在我转到java8之后,我在应用程序版本中遇到了这个错误,因为fabriccrashlytics: Could not determine the dependencies of task ':app:crashlyticsStoreDeobsRelease'. > Task with path 'dexRelease' not found in project ':app'. 我正在使用Android Studio 2.2、Gradle版本2.14.1、Android插件版本2.2.0

在我转到
java8
之后,我在应用程序版本中遇到了这个错误,因为
fabric
crashlytics:

Could not determine the dependencies of task ':app:crashlyticsStoreDeobsRelease'.
> Task with path 'dexRelease' not found in project ':app'.
我正在使用Android Studio 2.2、Gradle版本2.14.1、Android插件版本2.2.0

项目运行没有任何问题,但我无法生成已签名的apk

我读了这篇文章,但答案对我并没有帮助

这是我的gradle文件:

buildscript {
 repositories {
    maven { url 'https://maven.fabric.io/public' }
 }

 dependencies {
    classpath 'io.fabric.tools:gradle:1+'
 }
}

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

repositories {
    maven { url 'https://maven.fabric.io/public' }
}


android {
 compileSdkVersion 24
 buildToolsVersion "24.0.2"

 defaultConfig {
    applicationId "..."
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 17
    versionName "0.14.1"

    jackOptions {
        enabled true
    }
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

  dexOptions {
    javaMaxHeapSize "3g"
  }

  signingConfigs {
    release {
        storeFile file("....jks")
        storePassword "..."
        keyAlias "..."
        keyPassword "..."
    }
  }

 buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        shrinkResources true

        debuggable true
        signingConfig signingConfigs.release
    }

    debug{
        debuggable true
        //applicationIdSuffix ".debug"
    }
 }
 }

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')

//Material edit text
compile 'com.rengwuxian.materialedittext:library:2.1.4'
//Circle progress bar
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.1.0'
//a divider for recyclerview
compile 'com.yqritc:recyclerview-flexibledivider:1.2.9'


//Field and method binding for Android views
compile 'com.jakewharton:butterknife:7.0.1'
//crash reporting and streamline solution for distributing apps
   compile('com.crashlytics.sdk.android:crashlytics:2.6.3@aar') {
      transitive = true;
   }

//LeakCanary
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'

compile('com.github.ozodrukh:CircularReveal:2.0.1@aar') {
    transitive = true;
}
compile project(':core')
}

apply plugin: 'com.google.gms.google-services'

我通过此链接检查fabric工具版本


然后我使用了较低版本的io.fabric.tools:gradle:1.25.4'

将multidex enable true添加到gradle并清理项目gradle和fabri插件之间似乎存在一些不兼容。避免在结构的类路径中使用“+”。使用类似于
classpath'io.fabric.tools:gradle:1.20.1
@ShrenikShah I enable multidex>>>
multidex enabled true
但它没有help@NarayanAcharya我将classpath更改为最新版本>>
classpath'io.fabric.tools:gradle:1.21.5'
,但没有更改help@HamedGh你设法解决了这个问题吗?