Trying to add MultiDex support - cannot find symbol context and MultiDex

后端 未结 4 2042
不思量自难忘°
不思量自难忘° 2021-02-19 22:39

After following the instructions mentioned at: https://developer.android.com/studio/build/multidex.html#mdex-gradle

I am getting an error cannot find symbol

4条回答
  •  抹茶落季
    2021-02-19 22:50

    The reason you are having this "symbol not found" issue is because you haven't imported the required imports. Why not simply add the following imports

    import android.support.multidex.MultiDex;

    import android.content.Context;

    You should know the different cases for using each Multidex option. Kindly refer to https://developer.android.com/studio/build/multidex#java for all information relating to MultiDexing

提交回复
热议问题