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

后端 未结 4 2013
不思量自难忘°
不思量自难忘° 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 23:11

    Thanks to @Gabe Sechan for the help. I know React Native/JavaScript, kind of clueless about Android/Java, so I simply followed the instructions at https://developer.android.com/studio/build/multidex.html#mdex-gradle, which did not mention any additional imports. I learned to look up the package I needed here: https://developer.android.com/reference/android/support/multidex/MultiDexApplication.html. After adding:

    import android.support.multidex.MultiDexApplication;
    
    public class MainApplication extends MultiDexApplication implements ReactApplication {
    ...
    

    App seems to build and run successfully on Android 4.4.4+ devices. On my Samsung Galaxy S3 simulator running 4.3 however, I am getting a crash upon app start: What does WIN DEATH: android.osDeadObjectException mean?, which seems like another issue altogether.

提交回复
热议问题