What happens if you just restart the App? I mean don't do the second step.
09-23 09:24:45.328 6464-6464/? I/art: Late-enabling -Xcheck:jni
09-23 09:24:45.446 6464-6464/com.example.mmkv W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-23 09:24:45.486 6464-6464/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:24:45.486 6464-6464/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:24:45.566 6464-6464/com.example.mmkv I/MMKV: <101::jni_onload> current API level = 23101::jni_onload>
09-23 09:24:45.566 6464-6464/com.example.mmkv I/MMKV: <154::initialize> version v1.2.2 page size:4096154::initialize>
09-23 09:24:45.566 6464-6464/com.example.mmkv I/MMKV: <192::initializemmkv> root dir: /data/user/0/com.example.mmkv/files/mmkv192::initializemmkv>
09-23 09:24:45.567 6464-6464/com.example.mmkv I/MMKV: <80::loadfromfile> loading [share_data] with 0 actual size, file size 4096, InterProcess 1, meta info version:080::loadfromfile>
09-23 09:24:45.567 6464-6464/com.example.mmkv I/MMKV: <129::loadfromfile> loaded [share_data] with 0 key-values129::loadfromfile>
09-23 09:24:45.567 6464-6464/com.example.mmkv D/MainActivity: hello= 111
09-23 09:24:45.567 6464-6464/com.example.mmkv D/MainActivity: world= false
09-23 09:24:45.578 6464-6479/com.example.mmkv D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-23 09:24:45.633 6464-6479/com.example.mmkv I/Adreno-EGL: <379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb379>
09-23 09:24:45.638 6464-6479/com.example.mmkv I/OpenGLRenderer: Initialized EGL, version 1.4
09-23 09:25:54.691 9152-9152/? I/art: Late-enabling -Xcheck:jni
09-23 09:25:54.779 9152-9152/com.example.mmkv W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-23 09:25:54.820 9152-9152/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:25:54.821 9152-9152/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:25:54.928 9152-9152/com.example.mmkv I/MMKV: <101::jni_onload> current API level = 23101::jni_onload>
09-23 09:25:54.929 9152-9152/com.example.mmkv I/MMKV: <154::initialize> version v1.2.2 page size:4096154::initialize>
09-23 09:25:54.929 9152-9152/com.example.mmkv I/MMKV: <192::initializemmkv> root dir: /data/user/0/com.example.mmkv/files/mmkv192::initializemmkv>
09-23 09:25:54.929 9152-9152/com.example.mmkv I/MMKV: <80::loadfromfile> loading [share_data] with 23 actual size, file size 4096, InterProcess 1, meta info version:380::loadfromfile>
09-23 09:25:54.929 9152-9152/com.example.mmkv I/MMKV: <85::loadfromfile> loading [share_data] with crc 1399875606 sequence 1 version 385::loadfromfile>
09-23 09:25:54.929 9152-9152/com.example.mmkv I/MMKV: <129::loadfromfile> loaded [share_data] with 1 key-values129::loadfromfile>
09-23 09:25:54.930 9152-9152/com.example.mmkv D/MainActivity: hello= 222
09-23 09:25:54.930 9152-9152/com.example.mmkv D/MainActivity: world= false
09-23 09:25:54.941 9152-9166/com.example.mmkv D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-23 09:25:54.992 9152-9166/com.example.mmkv I/Adreno-EGL: <379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb379>
09-23 09:25:54.997 9152-9166/com.example.mmkv I/OpenGLRenderer: Initialized EGL, version 1.4
What happens if you move the line of code MMKV.initialize(this, MMKVLogLevel.LevelDebug) to Application.onCreate()
09-23 09:30:26.556 10800-10800/? I/art: Late-enabling -Xcheck:jni
09-23 09:30:26.629 10800-10800/com.example.mmkv I/MMKV: <101::jni_onload> current API level = 23101::jni_onload>
09-23 09:30:26.629 10800-10800/com.example.mmkv I/MMKV: <154::initialize> version v1.2.2 page size:4096154::initialize>
09-23 09:30:26.629 10800-10800/com.example.mmkv I/MMKV: <192::initializemmkv> root dir: /data/user/0/com.example.mmkv/files/mmkv192::initializemmkv>
09-23 09:30:26.652 10800-10800/com.example.mmkv W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-23 09:30:26.678 10800-10800/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:30:26.679 10800-10800/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:30:26.736 10800-10800/com.example.mmkv I/MMKV: <80::loadfromfile> loading [share_data] with 0 actual size, file size 4096, InterProcess 1, meta info version:080::loadfromfile>
09-23 09:30:26.736 10800-10800/com.example.mmkv I/MMKV: <129::loadfromfile> loaded [share_data] with 0 key-values129::loadfromfile>
09-23 09:30:26.736 10800-10800/com.example.mmkv D/MainActivity: hello= 111
09-23 09:30:26.736 10800-10800/com.example.mmkv D/MainActivity: world= false
09-23 09:30:26.745 10800-10813/com.example.mmkv D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-23 09:30:26.783 10800-10813/com.example.mmkv I/Adreno-EGL: <379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb379>
09-23 09:30:26.788 10800-10813/com.example.mmkv I/OpenGLRenderer: Initialized EGL, version 1.4
09-23 09:30:50.656 10969-10969/? I/art: Late-enabling -Xcheck:jni
09-23 09:30:50.735 10969-10969/com.example.mmkv I/MMKV: <101::jni_onload> current API level = 23101::jni_onload>
09-23 09:30:50.737 10969-10969/com.example.mmkv I/MMKV: <154::initialize> version v1.2.2 page size:4096154::initialize>
09-23 09:30:50.737 10969-10969/com.example.mmkv I/MMKV: <192::initializemmkv> root dir: /data/user/0/com.example.mmkv/files/mmkv192::initializemmkv>
09-23 09:30:50.762 10969-10969/com.example.mmkv W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-23 09:30:50.795 10969-10969/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:30:50.796 10969-10969/com.example.mmkv I/art: Rejecting re-init on previously-failed class java.lang.Class
09-23 09:30:50.874 10969-10969/com.example.mmkv I/MMKV: <80::loadfromfile> loading [share_data] with 23 actual size, file size 4096, InterProcess 1, meta info version:380::loadfromfile>
09-23 09:30:50.874 10969-10969/com.example.mmkv I/MMKV: <85::loadfromfile> loading [share_data] with crc 428423594 sequence 1 version 385::loadfromfile>
09-23 09:30:50.874 10969-10969/com.example.mmkv I/MMKV: <129::loadfromfile> loaded [share_data] with 1 key-values129::loadfromfile>
09-23 09:30:50.874 10969-10969/com.example.mmkv D/MainActivity: hello= 222
09-23 09:30:50.875 10969-10969/com.example.mmkv D/MainActivity: world= false
09-23 09:30:50.884 10969-10995/com.example.mmkv D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-23 09:30:50.938 10969-10995/com.example.mmkv I/Adreno-EGL: <379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb379>
09-23 09:30:50.948 10969-10995/com.example.mmkv I/OpenGLRenderer: Initialized EGL, version 1.4