Ejected expo sdk 30 fails to start on android kitkat

Hi, I want to make an app to available on android kitkat with expo. Because expo31 is dropping support for kitkat so I decided to use expo30.

But a problem comes in. Ejected expo 30 fails on start in android kitkat.

Environment

  Expo CLI 2.6.14 environment info:
    System:
      OS: macOS High Sierra 10.13.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
      Yarn: 1.6.0 - /usr/local/bin/yarn
      npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.1 AI-173.4720617
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^30.0.1 => 30.0.2 
      react: 16.3.1 => 16.3.1 
      react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4 
    npmGlobalPackages:
      expo-cli: 2.6.14

Steps to Reproduce

  1. expo init hello30
  2. cd hello30
  3. delete /node_modules & change package.json (downgrade the expo) and yarn install
  "dependencies": {
    "babel-plugin-transform-remove-console": "^6.9.4",
    "expo": "^30.0.1",
    "expokit": "1.7.1",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz"
  },
  1. create .babelrc and delete babel.config.js
  2. write this to .babelrc
{
  "presets": [
    "babel-preset-expo"
  ],
  "env": {
    "development": {
      "plugins": [
        "transform-react-jsx-source"
      ]
    },
    "production": {
      "plugins": [
        "transform-remove-console"
      ]
    }
  }
}
  1. change app.json (downgrade “sdkVersion”: “30.0.0”,)
  2. expo eject, choose expokit, ios & android package: com.hello30
  3. create signed key
  4. cd android, ./gradlew assembleRelease
  5. build finished, install apk on kitkat simulator

Expected Behavior

Running on android kitkat with ejected expo sdk 30.

Actual Behavior

The app starts on blink screen.

adb logcat

I/ActivityManager(21966): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.hello30/host.exp.exponent.MainActivity} from pid 22118
D/dalvikvm(21966): GC_FOR_ALLOC freed 1538K, 36% free 11032K/17088K, paused 9ms, total 9ms
I/dalvikvm-heap(21966): Grow heap (frag case) to 13.768MB for 3025524-byte allocation
D/dalvikvm(21966): GC_CONCURRENT freed 7K, 31% free 13979K/20044K, paused 1ms+1ms, total 13ms
D/dalvikvm(21966): WAIT_FOR_CONCURRENT_GC blocked 12ms
D/dalvikvm(21966): WAIT_FOR_CONCURRENT_GC blocked 3ms
D/dalvikvm(21966): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm(21966): WAIT_FOR_CONCURRENT_GC blocked 13ms
I/ActivityManager(21966): Start proc com.hello30 for activity com.hello30/host.exp.exponent.MainActivity: pid=3786 uid=10091 gids={50091, 3003, 1028, 1015}
I/MultiDex( 3786): VM with version 1.6.0 does not have multidex support
I/MultiDex( 3786): Installing application
I/MultiDex( 3786): MultiDexExtractor.load(/data/app/com.hello30-1.apk, false, )
I/MultiDex( 3786): Blocking on lock /data/data/com.hello30/code_cache/secondary-dexes/MultiDex.lock
I/MultiDex( 3786): /data/data/com.hello30/code_cache/secondary-dexes/MultiDex.lock locked
I/MultiDex( 3786): Detected that extraction must be performed.
D/EGL_emulation(22118): eglMakeCurrent: 0xb8e0f8f0: ver 3 0
D/gralloc_ranchu( 1162): gralloc_alloc: Creating ashmem region of size 3637248
D/dalvikvm( 3786): GC_CONCURRENT freed 166K, 9% free 3139K/3416K, paused 2ms+1ms, total 5ms
I/MultiDex( 3786): Extraction is needed for file /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes2.zip
I/MultiDex( 3786): Extracting /data/data/com.hello30/code_cache/secondary-dexes/tmp-com.hello30-1.apk.classes-906774566.zip
D/EGL_emulation(22018): eglMakeCurrent: 0xb8e17070: ver 3 0
D/EGL_emulation(22118): eglMakeCurrent: 0xb8e0f8f0: ver 3 0
I/MultiDex( 3786): Renaming to /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes2.zip
I/MultiDex( 3786): Extraction succeeded - length /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes2.zip: 3230274 - crc: 2162233358
I/MultiDex( 3786): Extraction is needed for file /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes3.zip
I/MultiDex( 3786): Extracting /data/data/com.hello30/code_cache/secondary-dexes/tmp-com.hello30-1.apk.classes-18102165.zip
I/MultiDex( 3786): Renaming to /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes3.zip
I/MultiDex( 3786): Extraction succeeded - length /data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes3.zip: 3801312 - crc: 3353220764
I/MultiDex( 3786): load found 2 secondary dex files
D/dalvikvm( 3786): DexOpt: --- BEGIN 'com.hello30-1.apk.classes2.zip' (bootstrap=0) ---
W/linker  ( 3801): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
E/cutils-trace( 3801): Error opening trace file: Permission denied (13)
D/dalvikvm( 3801): GC_FOR_ALLOC freed 81K, 4% free 1966K/2048K, paused 1ms, total 1ms
D/dalvikvm( 3801): DexOpt: couldn't find field Landroid/content/pm/ApplicationInfo;.minSdkVersion
D/dalvikvm( 3801): DexOpt: load 73ms, verify+opt 360ms, 6784364 bytes
D/dalvikvm( 3786): DexOpt: --- END 'com.hello30-1.apk.classes2.zip' (success) ---
D/dalvikvm( 3786): DEX prep '/data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes2.zip': unzip in 71ms, rewrite 558ms
D/dalvikvm( 3786): DexOpt: --- BEGIN 'com.hello30-1.apk.classes3.zip' (bootstrap=0) ---
W/linker  ( 3802): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
E/cutils-trace( 3802): Error opening trace file: Permission denied (13)
D/dalvikvm( 3802): GC_FOR_ALLOC freed 47K, 3% free 1999K/2048K, paused 1ms, total 1ms
D/dalvikvm( 3802): DexOpt: load 60ms, verify+opt 430ms, 6518764 bytes
D/dalvikvm( 3786): DexOpt: --- END 'com.hello30-1.apk.classes3.zip' (success) ---
D/dalvikvm( 3786): DEX prep '/data/data/com.hello30/code_cache/secondary-dexes/com.hello30-1.apk.classes3.zip': unzip in 71ms, rewrite 602ms
I/MultiDex( 3786): install done
I/dalvikvm( 3786): Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.b.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24828: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3786): Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.b.b
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24824: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3786): Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.b.b
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24837: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3786): Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.b.c
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24823: Landroid/content/Context;.getColor (I)I
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 3786): Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.b.c
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24848: Landroid/content/Context;.isDeviceProtectedStorage ()Z
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0006
D/dalvikvm( 3786): GC_CONCURRENT freed 269K, 11% free 3275K/3648K, paused 0ms+2ms, total 4ms
I/dalvikvm( 3786): Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method com.google.android.gms.internal.h.ke.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 282: Landroid/content/Context;.isDeviceProtectedStorage ()Z
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0009
D/FirebaseApp( 3786): com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
I/dalvikvm( 3786): Could not find method android.content.Context.getSystemService, referenced from method android.support.v4.app.b.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24844: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
D/FirebaseApp( 3786): com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0008
I/FirebaseInitProvider( 3786): FirebaseApp initialization successful
I/dalvikvm( 3786): Could not find method android.app.AppOpsManager.permissionToOp, referenced from method android.support.v4.app.b.a
W/dalvikvm( 3786): VFY: unable to resolve static method 24359: Landroid/app/AppOpsManager;.permissionToOp (Ljava/lang/String;)Ljava/lang/String;
D/dalvikvm( 3786): VFY: replacing opcode 0x71 at 0x0006
I/dalvikvm( 3786): Could not find method android.content.Context.getExternalMediaDirs, referenced from method android.support.v4.content.FileProvider.b
W/dalvikvm( 3786): VFY: unable to resolve virtual method 24833: Landroid/content/Context;.getExternalMediaDirs ()[Ljava/io/File;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x00a3
E/dalvikvm( 3786): Could not find class 'android.view.autofill.AutofillManager', referenced from method com.facebook.internal.Utility.isAutofillAvailable
W/dalvikvm( 3786): VFY: unable to resolve const-class 5524 (Landroid/view/autofill/AutofillManager;) in Lcom/facebook/internal/Utility;
D/dalvikvm( 3786): VFY: replacing opcode 0x1c at 0x0008
D/com.facebook.FacebookSdk( 3786): getGraphApiVersion: v3.0
D/dalvikvm( 3786): GC_CONCURRENT freed 582K, 18% free 3100K/3780K, paused 3ms+0ms, total 7ms
I/dalvikvm( 3786): Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.n.isUninstalledAppPossiblyUpdating
W/dalvikvm( 3786): VFY: unable to resolve virtual method 411: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0012
I/dalvikvm( 3786): Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.d.b.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 418: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x002d
I/dalvikvm( 3786): Could not find method android.provider.Settings.canDrawOverlays, referenced from method host.exp.a.b.g
W/dalvikvm( 3786): VFY: unable to resolve static method 61208: Landroid/provider/Settings;.canDrawOverlays (Landroid/content/Context;)Z
D/dalvikvm( 3786): VFY: replacing opcode 0x71 at 0x0008
D/dalvikvm( 3786): GC_FOR_ALLOC freed 195K, 15% free 3219K/3780K, paused 2ms, total 2ms
D/dalvikvm( 3786): GC_CONCURRENT freed 294K, 11% free 3435K/3840K, paused 1ms+0ms, total 5ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): GC_CONCURRENT freed 249K, 9% free 3694K/4056K, paused 1ms+0ms, total 5ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 3ms
D/dalvikvm( 3786): GC_CONCURRENT freed 303K, 10% free 3881K/4292K, paused 1ms+2ms, total 6ms
D/dalvikvm( 3786): GC_CONCURRENT freed 256K, 9% free 4131K/4504K, paused 1ms+0ms, total 5ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 1ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): GC_CONCURRENT freed 375K, 11% free 4258K/4752K, paused 2ms+0ms, total 6ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 2ms
D/dalvikvm( 3786): GC_CONCURRENT freed 292K, 9% free 4468K/4880K, paused 1ms+1ms, total 4ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 1ms
I/dalvikvm( 3786): Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.d.a.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 417: Landroid/content/pm/PackageManager;.isInstantApp ()Z
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0028
I/FA      ( 3786): App measurement is starting up, version: 12780
I/FA      ( 3786): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA      ( 3786): To enable faster debug mode event logging run:
I/FA      ( 3786):   adb shell setprop debug.firebase.analytics.app com.hello30
D/dalvikvm( 3786): GC_CONCURRENT freed 387K, 10% free 4590K/5084K, paused 0ms+0ms, total 6ms
I/dalvikvm( 3786): Could not find method android.widget.ImageView.<init>, referenced from method com.facebook.drawee.view.DraweeView.<init>
W/dalvikvm( 3786): VFY: unable to resolve direct method 38799: Landroid/widget/ImageView;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;II)V
D/dalvikvm( 3786): VFY: replacing opcode 0x70 at 0x0000
I/dalvikvm( 3786): Could not find method com.facebook.drawee.view.DraweeView.getImageTintList, referenced from method com.facebook.drawee.view.DraweeView.init
W/dalvikvm( 3786): VFY: unable to resolve virtual method 52237: Lcom/facebook/drawee/view/DraweeView;.getImageTintList ()Landroid/content/res/ColorStateList;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0015
D/dalvikvm( 3786): GC_CONCURRENT freed 461K, 12% free 4641K/5216K, paused 0ms+2ms, total 9ms
E/dalvikvm( 3786): Could not find class 'android.app.ActivityManager$AppTask', referenced from method host.exp.exponent.f.j.a
W/dalvikvm( 3786): VFY: unable to resolve check-cast 9136 (Landroid/app/ActivityManager$AppTask;) in Lhost/exp/exponent/f/j;
D/dalvikvm( 3786): VFY: replacing opcode 0x1f at 0x003f
I/dalvikvm( 3786): Could not find method android.app.ActivityManager$AppTask.getTaskInfo, referenced from method host.exp.exponent.f.j.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60365: Landroid/app/ActivityManager$AppTask;.getTaskInfo ()Landroid/app/ActivityManager$RecentTaskInfo;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x006d
I/dalvikvm( 3786): Could not find method android.app.ActivityManager.getAppTasks, referenced from method host.exp.exponent.f.j.a
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60367: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0027
I/dalvikvm( 3786): Could not find method android.app.ActivityManager.getAppTasks, referenced from method host.exp.exponent.f.j.c
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60367: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x000e
I/dalvikvm( 3786): Could not find method android.app.ActivityManager.getAppTasks, referenced from method host.exp.exponent.f.j.q
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60367: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0010
E/dalvikvm( 3786): Could not find class 'android.app.ActivityManager$AppTask', referenced from method host.exp.exponent.f.j.r
W/dalvikvm( 3786): VFY: unable to resolve check-cast 9136 (Landroid/app/ActivityManager$AppTask;) in Lhost/exp/exponent/f/j;
D/dalvikvm( 3786): VFY: replacing opcode 0x1f at 0x001f
E/dalvikvm( 3786): Could not find class 'android.app.ActivityManager$AppTask', referenced from method host.exp.exponent.f.j.a
W/dalvikvm( 3786): VFY: unable to resolve check-cast 9136 (Landroid/app/ActivityManager$AppTask;) in Lhost/exp/exponent/f/j;
D/dalvikvm( 3786): VFY: replacing opcode 0x1f at 0x0018
I/dalvikvm( 3786): Could not find method android.app.ActivityManager.getAppTasks, referenced from method host.exp.exponent.f.j.b
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60367: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x001d
I/dalvikvm( 3786): Could not find method android.app.ActivityManager.getAppTasks, referenced from method host.exp.exponent.f.j.f
W/dalvikvm( 3786): VFY: unable to resolve virtual method 60367: Landroid/app/ActivityManager;.getAppTasks ()Ljava/util/List;
D/dalvikvm( 3786): VFY: replacing opcode 0x6e at 0x0010
D/dalvikvm( 3786): GC_CONCURRENT freed 343K, 9% free 4838K/5288K, paused 0ms+2ms, total 12ms
I/CrashlyticsCore( 3786): Initializing Crashlytics 2.3.8.97
D/dalvikvm( 3786): GC_CONCURRENT freed 331K, 8% free 5186K/5620K, paused 2ms+2ms, total 11ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 6ms
D/dalvikvm( 3786): WAIT_FOR_CONCURRENT_GC blocked 6ms
D/c       ( 3786): Finding badger
D/c       ( 3786): Current badger:me.leolin.shortcutbadger.impl.DefaultBadger
V/fb-UnpackingSoSource( 3786): locked dso store /data/data/com.hello30/lib-main
V/fb-UnpackingSoSource( 3786): deps mismatch on deps store: regenerating
V/fb-UnpackingSoSource( 3786): so store dirty: regenerating
D/dalvikvm( 3786): GC_CONCURRENT freed 395K, 9% free 5522K/6048K, paused 0ms+3ms, total 8ms
E/GraphResponse( 3786): {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libexpo-gl.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi24_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi25_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi26_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi27_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi28_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi29_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfb_abi30_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi24_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi25_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi26_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi27_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi28_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi29_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libfolly_json_abi30_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libgifimage.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi24_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi25_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi26_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi27_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi28_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi29_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_abi30_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi24_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi25_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi26_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi27_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi28_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi29_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libglog_init_abi30_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libgnustl_shared.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libicu_common.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libimagepipeline.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libjsc.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi24_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi25_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi26_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi27_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi28_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi29_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libprivatedata_abi30_0_0.so: deferring to libdir
D/ApkSoSource( 3786): not allowing consideration of lib/x86/libreactnativejni.so: deferring to libdir

expo publish:history

[10:42:42] Making sure project is set up correctly...
[10:42:50] Your project looks good!
┌──────────────┬──────────────────────┐
│ General Info │                      │
├──────────────┼──────────────────────┤
│ fullName     │ @capungorori/hello30 │
└──────────────┴──────────────────────┘
┌────────────────────────────────────────┬───────────────┬───────────────┬───────────────┬───────────────┬────────────────────────────────────────┬────────────────────────────────────────┐
│ publishedTime                          │ appVersion    │ sdkVersion    │ platform      │ channel       │ channelId                              │ publicationId                          │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ 2019-01-10T03:53:04.009Z               │ 1.0.0         │ 30.0.0        │ ios           │ default       │ f24f4b67-2094-45e2-8c0a-4aaa523daf3b   │ 3b572f92-148b-11e9-89ec-c78e8c91b4dd   │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ 2019-01-10T03:53:04.009Z               │ 1.0.0         │ 30.0.0        │ android       │ default       │ 5b04d679-b73c-4e03-b035-8cb9b3388e7f   │ 3b572f91-148b-11e9-89ec-c78e8c91b4dd   │
└────────────────────────────────────────┴───────────────┴───────────────┴───────────────┴───────────────┴────────────────────────────────────────┴────────────────────────────────────────┘

Reproducible Demo

Github Repo: https://github.com/fariswd/hello30
Signed Production build Apk: Dropbox - app-prodMinSdk-prodKernel-release.apk - Simplify your life

Hi @fariswd - sorry you’re running into this :disappointed: and thanks for the very detailed report. I have two more questions I’m hoping you can answer – 1) could you click on “View error log” on the blue screen and show a screenshot of what it says, and 2) does this happen if you create a debug build as well, or just release?

Hi @esamelson thanks for the response.

  1. Here the screenshot from view error log:


    Error calling AppRegistry.runApplication

  2. does this happen if you create a debug build as well, or just release?
    debug build is not possible in android kitkat because minSdkVersion on app/build.gradle is 21. if installing debug apk with command ./android/run.sh this shows up on log:

> Task :app:installDevMinSdkDevKernelDebug FAILED
Skipping device 'nexus4(AVD) - 4.4.2' for 'app:devMinSdkDevKernelDebug': minSdkVersion [21] > deviceApiLevel [19]


FAILURE: Build failed with an exception.

but app running good (release and debug) if installed on android greater than kitkat. I use android oreo for development.

Thanks.

Hey @fariswd - it looks like there’s something that’s setting your minSdkVersion to 21 (Android 5) even though it should still be 19 (Android 4.4). :thinking: Could you try pinning the version of expo in your package.json to 30.0.2 (without the caret), then reinstall and try building again?

I try rebuild from start with expo:“30.0.2” eject and decrease minSdkVersion to 19

then install debug on kitkat with ./android/run.sh. and it success installs on kitkat but when open the app its blinking forever.

on terminal expo start log like this:

[11:03:19] Finished building JavaScript bundle in 3541ms.
[11:03:20] Finished building JavaScript bundle in 16ms.
[11:03:22] Finished building JavaScript bundle in 19ms.
[11:03:23] Finished building JavaScript bundle in 18ms.
[11:03:24] Finished building JavaScript bundle in 21ms.
[11:03:25] Finished building JavaScript bundle in 18ms.
[11:03:26] Finished building JavaScript bundle in 19ms.
[11:03:29] Finished building JavaScript bundle in 24ms.
[11:03:30] Finished building JavaScript bundle in 21ms.
[11:03:30] Finished building JavaScript bundle in 19ms.
[11:03:31] Finished building JavaScript bundle in 19ms.
[11:03:32] Finished building JavaScript bundle in 17ms.
[11:03:33] Finished building JavaScript bundle in 18ms.
[11:03:34] Finished building JavaScript bundle in 25ms.

I think the problem is at LauncherActivity.java on expoview because only lolipop and greater is handle.

How to bypass .LauncherActivity or bypass the splashscreen what expo build. maybe the problem is splashscreen. :thinking:

Hi @fariswd - I’m guessing you’re right about the cause, but unfortunately this is not something we have the bandwidth to work on fixing right now. :disappointed: You’re welcome to dig into the native project and try fixing it yourself. One thing you could try is to modify your AndroidManifest.xml and move all of the intent-filters inside of LauncherActivity and move them to MainActivity (this will cause opening your app to bypass LauncherActivity). However I can’t guarantee this will work or won’t cause other problems – you’ll just have to try it out and see if you can get something to work.

1 Like

all intent is already on MainActivity from start but still calling LauncherActivity

maybe because MainAplication extending ExpoApplication class (which is call for LauncherActivity)

i try build expo from repo expo/expo but it was failed to build can you help me why @esamelson ? its here i open another Thread Build Custom Expokit 1.7.1 for sdk30.0.0 - #2 by fariswd

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.