How to overcome app not installed error when building from Android Studio 3.0?

前端 未结 9 636
独厮守ぢ
独厮守ぢ 2021-01-06 04:25

For giving build for a debug Android app from Android Studio 3.0, it’s not installing in Mobile having Marshmallow and up (in Lollipop not tested).

I have used many

9条回答
  •  醉梦人生
    2021-01-06 04:57

    None of the other answers solved the issue. The build and install was going fine when it's triggered from android studio with a device connected to the computer or with an emulator, the only issue was when sending the apk via email or hockey app.

    How I could fix it (and this might not be the solution for everybody), I enabled the multidex support by adding this to the default config:

    // Enabling multidex support.
        multiDexEnabled true
    

    PS: Usually Android Studio build would fail if the multidex support has to be enabled, in this new version this didn't happen, but my Jenkins build was broken and this is how I could solve it.

提交回复
热议问题