Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Cant get my game to build might be related to google play services

Discussion in 'Android' started by ICE18, Nov 26, 2021.

  1. ICE18

    ICE18

    Joined:
    Apr 9, 2021
    Posts:
    9
    Hey my game keeps coming up with these errors I have no idea what they mean, it looks like I might be missing a file but idk I'm new to programming and unity all together so here's some screenshots and I appreciate any help you can give. upload_2021-11-25_19-39-58.png upload_2021-11-25_19-41-16.png

    upload_2021-11-25_19-42-41.png
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    Your project has duplicate libraries. In this scenario the issue is
    1. You have AndroidX libraries along with support v4 library files
    2. You have not enable Jetifier to have compatibility with AndroidX libs while using support v4 libs.

    Support v4 files are deprecated and replaced by AndroidX libraries.


    As I'm not aware of your project contents, try this once and let me know.
    1. Open Android settings from from top menu bar -> Assets -> External Dependency Manager
    2. Enable Jetifier option and click ok
    3. Try resolving and export
     
  3. ICE18

    ICE18

    Joined:
    Apr 9, 2021
    Posts:
    9

    Thanks but unfortunately this did not work, it looks like I already had the jetifier option enabled but I reenabled it anyways and tried resolving everything said it was good but I still got the errors.

    but I'm willing to try any other suggestions you might have.

    also if you want a screenshot of anything specific just let me know.
     
  4. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    Search for "support" text (without quotes) in the project and send me a screenshot
     
  5. ICE18

    ICE18

    Joined:
    Apr 9, 2021
    Posts:
    9
    like this?
    upload_2021-11-26_10-47-16.png

    Also this is a crash report I got from google play maybe this will help?

    ****************************************
    java.lang.RuntimeException:
    at android.app.ActivityThread.installProvider (ActivityThread.java:6378)
    at android.app.ActivityThread.installContentProviders (ActivityThread.java:5941)
    at android.app.ActivityThread.handleBindApplication (ActivityThread.java:5858)
    at android.app.ActivityThread.-wrap1 (Unknown Source)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1712)
    at android.os.Handler.dispatchMessage (Handler.java:106)
    at android.os.Looper.loop (Looper.java:164)
    at android.app.ActivityThread.main (ActivityThread.java:6648)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:811)
    Caused by: java.lang.ClassNotFoundException:
    at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:125)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
    at android.app.ActivityThread.installProvider (ActivityThread.java:6363)
    *****************************************
     

    Attached Files: