Target SDK Android

Hello¡

Can i edit the target sdk version of Android in a standalone build?

I have problems installing generated signed apk in a Samsung S8+ with Oreo.

“Application not installed” is the message i get when i try to install apk.

I think it can be an issue of target sdk.

Thank ¡¡

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

Hi @davidcanton - really sorry for the long delay in responding, not sure how this slipped through the cracks. Unfortunately you cannot control the targetSdkVersion in a normal standalone build, but you can do this if you detach – just edit your android/app/build.gradle.

so expo-built apps do not support the latest versions of android? on newer devices, the targetsdk needs to be 27 or higher in order to not see some of these errors. any plans to update the build servers to target sdk 27+?

Hi @streak81. Expo apps definitely work on Oreo. Can you explain what issue you’re hitting?

“main” prio=5 tid=1 Native
| group=“main” sCount=1 dsCount=0 obj=0x75765d10 self=0xf2885900
| sysTid=25930 nice=-4 cgrp=default sched=0/0 handle=0xf5d94534
| state=S schedstat=( 701303757 355352597 1096 ) utm=50 stm=20 core=1 HZ=100
| stack=0xff478000-0xff47a000 stackSize=8MB
| held mutexes=
#00 pc 0000000000017758 /system/lib/libc.so (syscall+28)
#01 pc 0000000000047895 /system/lib/libc.so (_ZL33__pthread_mutex_lock_with_timeoutP24pthread_mutex_internal_tbPK8timespec+176)
#02 pc 000000000000d48f /data/app/com.fillItForward.main-1/lib/arm/libfb.so (_ZN8facebook3jni10initializeEP7_JavaVMOSt8functionIFvvEE+102)
#03 pc 0000000000025be9 /data/app/com.fillItForward.main-1/lib/arm/libreactnativejni.so (JNI_OnLoad+48)
#04 pc 000000000023a179 /system/lib/libart.so (ZN3art9JavaVMExt17LoadNativeLibraryEP7_JNIEnvRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEP8_jobjectP8_jstringPS9+1844)
#05 pc 0000000000003167 /system/lib/libopenjdkjvm.so (JVM_NativeLoad+178)
#06 pc 0000000000071295 /system/framework/arm/boot.oat (Java_java_lang_Runtime_nativeLoad__Ljava_lang_String_2Ljava_lang_ClassLoader_2Ljava_lang_String_2+144)
at java.lang.Runtime.nativeLoad (Native method)
at java.lang.Runtime.doLoad (Runtime.java:1060)

  • locked <0x01d2d16a> (a java.lang.Runtime)
    at java.lang.Runtime.load0 (Runtime.java:895)
  • locked <0x01d2d16a> (a java.lang.Runtime)
    at java.lang.System.load (System.java:1542)
    at com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:71)
    at com.facebook.soloader.DirectorySoSource.loadLibrary (DirectorySoSource.java:42)
    at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:299)
    at com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:247)
  • locked <0x048da65b> (a java.lang.Class<com.facebook.soloader.SoLoader>)
    at com.facebook.react.bridge.ReactBridge.staticInit (ReactBridge.java:18)
    at com.facebook.react.bridge.NativeArray. (NativeArray.java:19)
    at com.facebook.react.bridge.Arguments.createArray (Arguments.java:156)
    at com.facebook.react.bridge.Arguments.fromArray (Arguments.java:206)
    at host.exp.exponent.modules.ExponentKernelModule.addError (ExponentKernelModule.java:83)
    at host.exp.exponent.experience.a.a (BaseExperienceActivity.java:226)
  • locked <0x0e61bef8> (a java.util.LinkedList)
    at host.exp.exponent.experience.a.j (BaseExperienceActivity.java:32)
    at host.exp.exponent.experience.a$2.run (BaseExperienceActivity.java:185)
    at android.os.Handler.handleCallback (Handler.java:751)
    at android.os.Handler.dispatchMessage (Handler.java:95)
    at android.os.Looper.loop (Looper.java:154)
    at android.app.ActivityThread.main (ActivityThread.java:6688)
    at java.lang.reflect.Method.invoke! (Native method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)

Broadcast of Intent { act=com.google.firebase.INSTANCE_ID_EVENT flg=0x14 cmp=com.fillItForward.main/com.google.firebase.iid.FirebaseInstanceIdInternalReceiver launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) }

com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

btw…we do not use firebase. This issue only presents on newer devices.

This seems like an unrelated issue @streak81. Can you open a new issue and include more information?

I posted a new topic. I also found another user with the same question:

This topic was automatically closed after 14 days. New replies are no longer allowed.