Android gives error “Cannot fit requested classes in a single dex file”

前端 未结 5 1193
忘掉有多难
忘掉有多难 2020-11-28 08:23

I don\'t know why but it\'s impossible to launch my app on my mobile this morning. I get this error message:

Cannot fit requested classes in a single dex

5条回答
  •  鱼传尺愫
    2020-11-28 09:09

    Running RN 0.62 and this worked for me with successful build.

    Update build.gradle

    classpath('com.android.support:multidex:1.0.3')

    Update defaultConfig

    multiDexEnabled true

    After those 2 changes, restart the gradle build again.

提交回复
热议问题