[CLOSED] App works in Expo XDE but not as a standalone .apk (spinning loader when opened)


#1

Hello,

My app is working in Expo XDE, and I have successfully run exp build:adroid and installed the .apk on the device (simulator).

However, when I open up the installed app it opens and I can see the splash screen but nothing happens except for a spinning wheel (loader).

Whats the difference between it running in Expo XDE versus the stand-alone apk? It’s on the same Genymotion simulator.

[exp] ============
[exp] Build Status
[exp] ============

[exp] Android:
[exp] APK: https://exp-shell-app-assets.s3-us-west-1.amazonaws.com/android%2F%40jefferyvincent%2FpowerPick-70ea337b-ec10-11e7-bb03-0a580a780707-signed.apk

Here is my app.json file

{
  "expo": {
    "name": "Power Pick",
    "icon": "./icons/pn_app_1024_icon.png",
    "version": "1.0.0",
    "slug": "powerPick",
    "orientation":"portrait",
    "sdkVersion": "21.0.0",
    "primaryColor": "#ffffff",
    "notification": {
      "icon": "./icons/pn_app_48_icon.png",
      "color":"#ffffff"
    },
    "loading": {
      "icon": "./icons/pn_app_1024_icon.png",
      "exponentIconColor": "white"
    },
    "ios": {
      "bundleIdentifier": "com.backbaystudios.powerpick",
      "buildNumber": "1.0.0",
      "icon": "./icons/pn_app_1024_icon.png",
      "supportsTablet": true,
      "splash": {
        "image": "./splash/1242_x_2208_splash.png",
        "backgroundColor": "#ffffff",
        "tabletImage": "./splash/2048_x_2732_splash.png",
      }
    },
    "android": {
      "package": "com.backbaystudios.powerpick",
      "versionCode": 2,
      "icon": "./icons/android_pn_app_1024_icon.png",
    },
    "splash": {
      "image": "./splash/1242_x_2208_splash.png",
      "backgroundColor": "#ffffff",
      "tabletImage": "./splash/2048_x_2732_splash.png",
    }
  }
}


#2

Seems to be the same issue as we had multiple times now. I solved it by running exp publish again after the build. Give it a try :slight_smile:


Can't run my standalone app
#3

Thanks! That’s what was wrong.


#4

I’m glad it sounds like things are working, though you shouldn’t need to run exp publish for a standalone app to work. Standalone apps come with your project’s JS embedded in them. One thing you can try is looking at the Android logs with adb logcat to see if any errors stand out while launching the app – unfortunately, it’s hard to debug a stuck spinner otherwise.


#5

I am having the same issue again, but this time with a different app. I used the command exp publish too. App works fine in the Exp XDE but not the .apk (spinning loader).

[exp] Published
[exp] Your URL is

https://exp.host/@jefferyvincent/megapick
[exp] Android:
[exp] APK: https://exp-shell-app-assets.s3-us-west-1.amazonaws.com/android%2F%40jefferyvincent%2Fmegapick-e21766d9-f97d-11e7-bc69-0a580a782704-signed.apk

adb log:

01-15 00:04:12.312   435   464 W android.os.Debug: failed to get memory consumption info: -1
01-15 00:04:19.844   432   453 W AudioFlinger: write blocked for 20001 msecs, 1 delayed writes, thread 0xec103900
01-15 00:04:33.246   388   388 I netd    : type=1400 audit(0.0:753): avc: denied { getopt } for path="/dev/socket/dnsproxyd" scontext=u:r:netd:s0 tcontext=u:r:init:s0:c512,c768 tclass=unix_stream_socket permissive=1
01-15 00:04:33.257  1308  1313 I zygote  : Do full code cache collection, code=124KB, data=111KB
01-15 00:04:33.257  1308  1313 I zygote  : After code cache collection, code=102KB, data=56KB
01-15 00:04:33.921   435   435 I ActivityManager: Killing 1101:com.android.carrierconfig/u0a3 (adj 906): empty #17
01-15 00:04:33.923   435   464 E memtrack: Couldn't load memtrack module
01-15 00:04:33.923   435   464 W android.os.Debug: failed to get memory consumption info: -1
01-15 00:04:33.928   388   426 E BandwidthController: Updating quota globalAlert failed (No such file or directory)
01-15 00:04:33.929   435   521 W NetworkStats: problem registering for global alert: java.lang.IllegalStateException: command '38 bandwidth setglobalalert 2097152' failed with '400 38 Bandwidth command failed'

01-15 00:05:55.516   435   468 E BatteryStatsService: no controller energy info supplied
01-15 00:05:55.520   435   468 E KernelUidCpuFreqTimeReader: Failed to read /proc/uid_time_in_state: java.io.FileNotFoundException: /proc/uid_time_in_state (No such file or directory)
01-15 00:05:55.520   435   468 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
01-15 00:06:00.001   435   464 E memtrack: Couldn't load memtrack module
01-15 00:06:00.001   435   464 W android.os.Debug: failed to get memory consumption info: -1
01-15 00:06:00.019   435   464 E memtrack: Couldn't load memtrack module
01-15 00:06:00.019   435   464 W android.os.Debug: failed to get memory consumption info: -1
01-15 00:06:00.035   435   464 E memtrack: Couldn't load memtrack module
01-15 00:06:00.035   435   464 W android.os.Debug: failed to get memory consumption info: -1
01-15 00:06:00.519   281   281 D Genymotion: getValueFromProc No callback found. Returning

#6

Still broken. Nothing is working… Why does it work in EXP IDE and not the .apk? This is frustrating to no end. The EXP IDE should display the same way as the apk.


#7

Discovered the issue to be the following:

Anyone know how to fix this?


#8

This can be closed. All is working. To fix the above issue. Change the value of "minify": false, within the settings.json file in the .expo folder


closed #9

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