Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

前端 未结 26 3044
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 02:29

If I run gradle assembleDebug from the command line, I am suddenly getting this error:

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.util.DexEx         


        
26条回答
  •  死守一世寂寞
    2020-11-22 02:56

    If you have imported your project from Eclipse.

    1. The select project 
    2. Go to File -> **Project Structure**
    3. Select app in **module** section on left hand panel
    4. Select **Dependency** tab
    5. Your able to see jars you have added in eclipse project for v4 and v13.
    6. Remove that jar by clicking on minus sign at bottom after selection
    7. Click on Plus sign select **Library Dependency** 
    8. Choose V4 and V13 if added
    9. Press Ok and Clean and Rebuild your project
    

    The scenario I have faced after importing Eclipse project to Android studio.

    Hope this helps..

提交回复
热议问题