错误:将字节码转换为dex时出错:原因:未找到:Ljava / lang / Object;

时间:2017-05-21 08:32:47

标签: java android android-studio-3.0

我尝试使用android 3.0。我将我的android项目升级到android studio 3.0 之后,我无法运行我的项目,我有这个错误。我使用MultiDex并使用java 8.

这是我的build.gradle

list_2 = [dict(l2, C=l1['C']) if l1['A'] == l2['A'] else l1 for l1, l2 in zip(list_1, list_2)]

这是我的编译错误

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile "com.android.support:appcompat-v7:${project.APP_COMPACT_VERTION}"
    compile "com.android.support:cardview-v7:${project.APP_COMPACT_VERTION}"
    compile "com.android.support:design:${project.APP_COMPACT_VERTION}"
    testCompile 'junit:junit:4.12'
    compile project(':ucrop')
    compile 'com.github.rey5137:material:1.2.2'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.easing:library:1.0.1@aar'
    compile 'com.daimajia.androidanimations:library:1.1.3@aar'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.intuit.sdp:sdp-android:1.0.3'
    compile 'com.google.firebase:firebase-messaging:9.2.1'
    compile 'com.google.firebase:firebase-analytics:9.2.1'
    compile 'com.google.firebase:firebase-crash:9.2.1'
    compile 'com.google.firebase:firebase-core:9.2.1'
    compile 'com.kyleduo.switchbutton:library:1.4.1'
    compile 'com.alirezaafkar:toolbar:1.0.9'
    compile 'net.simonvt.menudrawer:menudrawer:3.0.6'
    compile 'com.loopj.android:android-async-http:1.4.9'
    compile 'me.leolin:ShortcutBadger:1.1.10@aar'
    compile 'com.larswerkman:HoloColorPicker:1.5'
    compile 'com.github.lsjwzh.RecyclerViewPager:lib:v1.1.1'
    compile project(path: ':countrypicker')
    compile 'joda-time:joda-time:2.9.7'
    compile 'com.redmadrobot:inputmask:2.2.1'
    compile project(path: ':swipestack')
    compile 'me.relex:circleindicator:1.2.2@aar'
    //db orm
    annotationProcessor 'com.github.Raizlabs.DBFlow:dbflow-processor:4.0.0-beta5'
    compile 'com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta5'
    compile 'com.github.Raizlabs.DBFlow:dbflow:4.0.0-beta5'
    compile 'net.sourceforge.streamsupport:streamsupport:1.5.3'
    compile 'com.android.support:multidex:1.0.1'

}

1 个答案:

答案 0 :(得分:0)

问题是Android预览版和Gradel版。 将android studio更改为最新版本3.0 canary 5 将gradel版本更改为

 classpath 'com.android.tools.build:gradle:3.0.0-alpha5'