Android - MultiDex Install

前端 未结 1 1498
离开以前
离开以前 2021-01-24 14:14

I have exceeded the 65k method limit, by importing an external library. I have enabled ProGuard, but still get the same error.

[2015-01-12 15:13:39 - Dex Loader]         


        
1条回答
  •  广开言路
    2021-01-24 14:45

    Using the SDK Manager I have installed 'Android Support Repository' Rev. 11

    That is for developers using Android Studio or other tools that use Gradle for Android. Its contents will not be presently used by standard Eclipse.

    According to the Official Google Documentation, this jar should be located /extras/android/support/multidex/

    Try one of these:

    1. Follow the instructions for adding a support library with resources, using /extras/android/support/multidex/library/

    2. Copy the /extras/android/support/multidex/library/libs/android-support-multidex.jar JAR into your project's libs/ directory (since the aforementioned Android library project seems to only contain this JAR and nothing else)

    Do not do both. Do one or the other.

    UPDATE

    Here is a screenshot of my /extras/android/support/, showing multidex/ right where the docs say it should be:

    Android Support Package Directory Structure

    0 讨论(0)
提交回复
热议问题