You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This form is for reporting Unity Plugin issues only. To report an issue with the Play Games Service (non-SDK related), check Google Play Games Services Support. Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
Describe the bug
Game Play Services will not work with Unity 4.12 IAP, only 4.11 and down. This forces you to not use the plugins from the resolver, but instead use gradles for a successful build, however, successfully building with gradles and IAP 4.12 then won't allow game play services to work forces you to pick between either functioning IAP or functioning game play services by removing IAP and building out with the plugins in the android plugin folder.
To Reproduce
Steps to reproduce the behavior:
Download plugin 10.14, Download EDM4U 1.283, Use any version of unity
Install 4.12 IAP package
Install game play services and make sure everything is correct
Keep all plugins in the folder
Build game
Expected behavior
To build out the game so that IAP and game play services work, the same way it does with 4.11
Observed behavior
It throws duplicate classes errors and launcher duplicate errors. However, if you don't use the plugins, but instead opt for the custom Gradle, it will resolve and remove the plugins in build out, however, then your game play services will not work
Versions
Unity version: 6
Google Play Games Plugin for Unity version: 10.14
Additional context
I’m hoping someone can help me. I’m using Unity 6, with EDM4U 1.283, with Google Play Plugin 10.14.
This issue was nonexistent using Unity IAP 4.11, however, due to needing the 6.0 Android Library, I have no choice but to upgrade.
Here’s what’s happening. Thus far, I was using the plugins that were inside of the Assets/plugins/android folder. I could force resolve and it would build out the individual plugins I needed and using IAP 4.11, I could successfully build out my game with everything working (game play services included).
However, when trying to make a build using unity 6, with IAP 4.12, if I try to make a build using the plugins in the folder, it always fails building because it says there are duplicates (even though there are not, I have checked every folder). If I remove those plugins, I can build successfully, however, then my game play services achievements will no longer function.
Using the custom gradles doesn’t solve the problem either. I can build successfully, and even in the logcat it shows that it is trying to authentic game play services, and it comes back true, and yet, it has not signed in the player nor does the achievement button work as it shows “not implemented.” Again, this is with the Gradle.
So my dilemma is this. In order to adhere to googles 6.0 library, I have to decide between removing my IAP so that I can use the plugins to build out my game with game play services working, or I have to remove game play services so that IAP continue working.
Is there any workarounds anyone knows of? I have tried and looked up everything possible.
Am I missing something in my Gradle? I will post my Gradle below if there is something I am supposed to implement in the decencies that would enable game play services, please let me know:
// Dependencies for "com.unity.purchasing". This section is automatically generated.
afterEvaluate {
dependencies {
implementation 'com.android.billingclient:billing:6.2.1'
}
}
// End of dependencies for "com.unity.purchasing".
The text was updated successfully, but these errors were encountered:
Was there ever any resolution to this? I cannot get Unity IAP, Google Play Services Plugin to work together without constant gradle issues when trying to build even the simplest of solutions. I am using the latest plugin of both, have tried in various unity versions from 2022.3 - current.
This form is for reporting Unity Plugin issues only. To report an issue with the Play Games Service (non-SDK related), check Google Play Games Services Support.
Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
Describe the bug
Game Play Services will not work with Unity 4.12 IAP, only 4.11 and down. This forces you to not use the plugins from the resolver, but instead use gradles for a successful build, however, successfully building with gradles and IAP 4.12 then won't allow game play services to work forces you to pick between either functioning IAP or functioning game play services by removing IAP and building out with the plugins in the android plugin folder.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To build out the game so that IAP and game play services work, the same way it does with 4.11
Observed behavior
It throws duplicate classes errors and launcher duplicate errors. However, if you don't use the plugins, but instead opt for the custom Gradle, it will resolve and remove the plugins in build out, however, then your game play services will not work
Versions
Additional context
I’m hoping someone can help me. I’m using Unity 6, with EDM4U 1.283, with Google Play Plugin 10.14.
This issue was nonexistent using Unity IAP 4.11, however, due to needing the 6.0 Android Library, I have no choice but to upgrade.
Here’s what’s happening. Thus far, I was using the plugins that were inside of the Assets/plugins/android folder. I could force resolve and it would build out the individual plugins I needed and using IAP 4.11, I could successfully build out my game with everything working (game play services included).
However, when trying to make a build using unity 6, with IAP 4.12, if I try to make a build using the plugins in the folder, it always fails building because it says there are duplicates (even though there are not, I have checked every folder). If I remove those plugins, I can build successfully, however, then my game play services achievements will no longer function.
Using the custom gradles doesn’t solve the problem either. I can build successfully, and even in the logcat it shows that it is trying to authentic game play services, and it comes back true, and yet, it has not signed in the player nor does the achievement button work as it shows “not implemented.” Again, this is with the Gradle.
So my dilemma is this. In order to adhere to googles 6.0 library, I have to decide between removing my IAP so that I can use the plugins to build out my game with game play services working, or I have to remove game play services so that IAP continue working.
Is there any workarounds anyone knows of? I have tried and looked up everything possible.
Am I missing something in my Gradle? I will post my Gradle below if there is something I am supposed to implement in the decencies that would enable game play services, please let me know:
CUSTOM MAIN GRADLE:
apply plugin: 'com.android.library'
apply from: '../shared/keepUnitySymbols.gradle'
APPLY_PLUGINS
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
// Android Resolver Dependencies Start
implementation 'com.google.games:gpgs-plugin-support:0.10.14' // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
// Android Resolver Dependencies End
DEPS}
// Android Resolver Exclusions Start
android {
packaging {
exclude ('/lib/armeabi/' + '')
exclude ('/lib/mips/' + '')
exclude ('/lib/mips64/' + '')
exclude ('/lib/x86/' + '')
exclude ('/lib/x86_64/' + '')
}
}
// Android Resolver Exclusions End
android {
namespace "com.unity3d.player"
ndkPath "NDKPATH"
ndkVersion "NDKVERSION"
DEFAULT_CONFIG_SETUP
}
}
IL_CPP_BUILD_SETUP
SOURCE_BUILD_SETUP
EXTERNAL_SOURCES`
------------------------------------------ BUILD.GRADLE: -------------------------
apply plugin: 'com.android.library'
apply from: '../shared/keepUnitySymbols.gradle'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
// Android Resolver Dependencies Start
implementation 'com.google.games:gpgs-plugin-support:0.10.14' // Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml:11
// Android Resolver Dependencies End
implementation(name: 'facebook-android-sdk-4.17.0', ext:'aar')
implementation(name: 'facebook-android-wrapper-7.9.0', ext:'aar')
implementation(name: 'appcompat-v7-23.4.0', ext:'aar')
implementation(name: 'animated-vector-drawable-23.4.0', ext:'aar')
implementation(name: 'UnityAds', ext:'aar')
implementation(name: 'common', ext:'aar')
implementation(name: 'cardview-v7-23.4.0', ext:'aar')
implementation(name: 'UnityAndroidPermissions', ext:'aar')
implementation(name: 'customtabs-23.4.0', ext:'aar')
implementation(name: 'support-vector-drawable-23.4.0', ext:'aar')
implementation project(':unityLibrary:GooglePlayGamesManifest.androidlib')
}
// Android Resolver Exclusions Start
android {
packaging {
exclude ('/lib/armeabi/' + '')
exclude ('/lib/mips/' + '')
exclude ('/lib/mips64/' + '')
exclude ('/lib/x86/' + '')
exclude ('/lib/x86_64/' + '')
}
}
// Android Resolver Exclusions End
android {
namespace "com.unity3d.player"
ndkPath "/Applications/Unity/Hub/Editor/6000.0.23f1/PlaybackEngines/AndroidPlayer/NDK"
ndkVersion "23.1.7779620"
}
// Dependencies for "com.unity.purchasing". This section is automatically generated.
afterEvaluate {
dependencies {
implementation 'com.android.billingclient:billing:6.2.1'
}
}
// End of dependencies for "com.unity.purchasing".
The text was updated successfully, but these errors were encountered: