Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError for ActivityResultLauncher #244

Open
emrys90 opened this issue Jun 2, 2024 · 2 comments
Open

NoClassDefFoundError for ActivityResultLauncher #244

emrys90 opened this issue Jun 2, 2024 · 2 comments

Comments

@emrys90
Copy link

emrys90 commented Jun 2, 2024

Full stack trace:

06-02 09:24:57.736 10774 10796 E Unity   : UnityEngine.AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/activity/result/ActivityResultLauncher;
06-02 09:24:57.736 10774 10796 E Unity   :   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
06-02 09:24:57.736 10774 10796 E Unity   :   at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (System.IntPtr clazz, System.IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <00000000000000000000000000000000>:0
06-02 09:24:57.736 10774 10796 E Unity   :   at UnityEngine.AndroidReflection.GetMethodMember (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
06-02 09:24:57.736 10774 10796 E Unity   :   at UnityEngine._AndroidJNIHelper.GetMethodID (System.IntPtr jclass, System.String methodName, System.String signature, System.Boolean isStatic) [0x00000] in <00000000000000000000000000000000>:0
06-02 09:24:57.736 10774 10796 E Unity   :   at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
06-02 09:24:57.736 10774 10796 E Unity   :   at Google.Play.AssetDelivery.Internal.AssetDeliveryUpdateHandler
06-02 09:24:57.799 10774 10796 I chatty  : uid=10221(com.DivergentRealities.CardsTankards) UnityMain identical 5 lines

Any ideas how I can fix this? It happens at startup when I'm trying to load from Addressables using PAD.

@aleter
Copy link

aleter commented Jun 3, 2024

same crash

@secondimpactrob
Copy link

Try the suggestion in the comment linked below. Adding an androidx.activity dependency to a Dependencies.xml:
#236 (comment)

And also ensure targeting a recent enough Android (13 I believe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants