MultiDexApplication not recognized

前端 未结 4 853
温柔的废话
温柔的废话 2020-12-20 11:14

Trying to use MultiDexApplication in my app, but the class is not recognized when I try to extend my application activity with it.

Here is my build.gradle file:

4条回答
  •  礼貌的吻别
    2020-12-20 11:47

    MultiDexApplication class is not part of appcompat-v7 library. It is being shipped in a separate jar (called android-support-multidex).

    Find the android-support-multidex.jar under /sdk/extras/android/support/multidex/library/libs (available from revision 21 of support library) and copy it to your project's libs folder.

    Update (11/5/2014):
    The jar is now available in central repository:

    dependencies {
      ...
      compile 'com.android.support:multidex:1.0.0'
    }
    

    For more info, see here.

提交回复
热议问题