I am a beginner to unity. I have created an AR app for android, after building apk it is woring fine in phones. But after building the aab file for the google playstore and uploading it, the app downloaded from playstore is not even opening till the unity logo, it crashes .
Try to Debug using Android Logcat package.
pid: 0, tid: 18895 >>> com.AROVRINNOVATIONS.KonarkAudio <<<
backtrace:
#00 pc 0x0000000000059b38 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
#01 pc 0x000000000076fd50 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+904)
#02 pc 0x00000000000357d0 /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+80)
#03 pc 0x0000000000034d58 /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+352)
#04 pc 0x000000000025a49c /apex/com.android.art/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+8988)
#05 pc 0x00000000002ceeb8 /apex/com.android.art/lib64/libart.so (art::ObjPtr<art::mirror::Class> art::ClassLinker::DoResolveType<art::ArtMethod*>(art::dex::TypeIndex, art::ArtMethod*)+396)
#06 pc 0x00000000002ce170 /apex/com.android.art/lib64/libart.so (art::ResolveVerifyAndClinit(art::dex::TypeIndex, art::ArtMethod*, art::Thread*, bool, bool)+1568)
#07 pc 0x00000000002cdb2c /apex/com.android.art/lib64/libart.so (NterpGetClass+84)
#08 pc 0x00000000005be040 /apex/com.android.art/lib64/libart.so (nterp_get_class+48)
#09 pc 0x00000000005b075c /apex/com.android.art/lib64/libart.so (nterp_op_new_array+92)
#10 pc 0x00000000000352f6 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/oat/arm64/base.vdex (com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackState+2)
#11 pc 0x000000000033a7a4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#12 pc 0x00000000003388ec /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+772)
#13 pc 0x0000000000560504 /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+192)
#14 pc 0x00000000002ab57c /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#15 pc 0x00000000002bdb9c /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#16 pc 0x00000000002bd900 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#17 pc 0x00000000002c03b0 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#18 pc 0x00000000002c1b70 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#19 pc 0x00000000002d85c0 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/lib/arm64/libunity.so (BuildId: 7bb49341ad9f0c299a67500a807fe0431b358c52)
#20 pc 0x0000000000351230 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144)
#21 pc 0x00000000005b8fb0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016)
#22 pc 0x0000000000037bd0 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.access$500)
#23 pc 0x00000000005b8034 /apex/com.android.art/lib64/libart.so (nterp_helper+52)
#24 pc 0x00000000000371f0 /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e$1.handleMessage+252)
#25 pc 0x00000000009b258c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+124)
#26 pc 0x00000000009b6004 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+980)
#27 pc 0x00000000009b5b94 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+916)
#28 pc 0x00000000005b8098 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
#29 pc 0x00000000000375ec /data/app/~~aXRKCbxmudta1OVOUrZFIQ==/com.AROVRINNOVATIONS.KonarkAudio-lmR-7VF333sBtnZt1ACPpA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+40)
#30 pc 0x000000000033a7a4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#31 pc 0x000000000023a01c /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
#32 pc 0x0000000000539108 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
#33 pc 0x0000000000538ab8 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
#34 pc 0x00000000000be888 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#35 pc 0x000000000005b370 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
I am able to run in app in android 13 or below , but when it’s android 14, the app is crashing. This should not be an error with our aab file. Can anyone help me with this?
Hi, rather than uploading AAB to Play Store, you can also test it in local too and that would be save a lot time to debugging.
Requirement:
- Download BundletoolJar from Google
Make .bat file for convert AAB to APK
SET MYOUTPUT="C:\PathToYourOutput\output.apks"
IF EXIST %MYOUTPUT% DEL /F %MYOUTPUT%
java -jar "C:\PathToYourBundleJar\bundletool-all-1.xx.x.jar" build-apks --bundle="C:\PathToYourAndroidAAB\MyAndroid.aab" --output=%MYOUTPUT% --local-testing
pause
Make .bat file to install APK to your android device attached on USB
java -jar "C:\PathToYourBundleJar\bundletool-all-1.xx.x.jar" install-apks --apks=C:\PathToYourConvertedAPK\output.apks
pause
Just execute orderly from convert AAB to APK, then install it to your device. Then for testing if there is an error, you could use debugging tool to check the error.
What Unity version do you use? What plugins? Which AR package version? Do you have custom templates enabled?
There are issues specifically to Android 14:
Yes, please make sure you have the latest versions of the packages. Also I see KonarkAudio in the stack trace so perhaps see if disabling that helps.
I am using Unity 2021.3.31f1. However day before yesterday I started working on unity6. But it will take me sometime to get acquinted. I am using vuforia in that project.
Please use Unity 2022.3 LTS which is targeted for Production use to avoid other bugs.
Unity 6 is still in Preview Mode.
Thank you all for helping. When I updated to unity 2022.3 everything is fine.