Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

后端 未结 30 2560
迷失自我
迷失自我 2020-11-22 00:31

Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating.

The error:

[2011-10-23 16:23:29 - De         


        
30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 00:47

    None of the above helped. It was a simple problem in the end.

    I had a project which uses the FacebookSDK and ViewPagerIndicator as library projects. All were built on Android API 16 and those two projects used the android support library vX (X not being 16!)

    I added an external JAR to both those projects and pointed it to \extras\android\v4... And also removed the v4 jar I had in their libs folders.

    Clean all projects and re-build.

    Voilla!

    The exact error I was receiving: Unable to execute dex: Multiple dex files define Landroid/support/v4/view/PagerAdapter; Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/view/PagerAdapter;

提交回复
热议问题