Android Studio missing external dependencies

前端 未结 3 712
星月不相逢
星月不相逢 2020-12-31 10:01

I have a library project. I want to use Android\'s new build system. Currently I\'m encountering a quite annoying scenario.

I have my dependencies defined on

3条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 10:31

    I commented following line from build.gradle file and it started working.

    //compile files('libs/android-support-v4.jar')
    

    enter image description here

    Previously dry build operation would succeed but when I would try to run on device there would be error

    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define  Landroid/support/annotation/AnimRes;
    

提交回复
热议问题