To implement In app update service in my live app, Here is What I’ve Tried .
Environment
-Unity version : 2019.4.18f LTS
-Android Studio : 4.1.0
1. Made my own .aar plugin and Added to Unity Assets/Plugins/Android folder
Added implementation ‘com.google.android.play:core:1.8.3’ to dependencies block of gradle file(app module)
after I read this reference In-App-Updates | Android Developers
2. Called Android-Java Function in Unity
Called Update Checking method in plugin with AndroidJavaClass object in Unity.
When I run my game I get this exception.
Note that this logcat is not from live app but Is that matter with this exception??
Other Library in aar works fine.Only google.android.play.core library matters. Have I missed something?
Do you have the playcore.aar file in your Unity project?
1 Like
I finally made it.Thanks kaarloew. As you mentioned What I missed was play core library.
To add play core library, download this package GitHub - google/play-unity-plugins: The Google Play Plugins for Unity provide C# APIs for accessing various Play services or insert this JSON statement to Packages/manifest.json, then download play core library from Unity’s package manager.
"scopedRegistries": [
{
"name": "Game Package Registry by Google",
"url": "https://unityregistry-pa.googleapis.com",
"scopes": [
"com.google"
]
}
]
In addition, I leave it for someone who is going through the same difficulties as me while testing the in app update.
As rpattabi said, I took test process from google play store’s in alpha track and It worked!