Open 777CC opened 7 years ago
I recommended using this packet https://github.com/googlesamples/unity-jar-resolver //GCMDependencies.cs using Google.JarResolver; using UnityEditor;
[InitializeOnLoad] public static class GCMDependencies { static GCMDependencies() { PlayServicesSupport svcSupport = PlayServicesSupport.CreateInstance( "AdsSample", EditorPrefs.GetString("AndroidSdkRoot"), "ProjectSettings");
svcSupport.DependOn("com.google.android.gms", "play-services-gcm", "10.2+"); }
}
move GCMDependencies.cs to Editor folder
I recommended using this packet https://github.com/googlesamples/unity-jar-resolver //GCMDependencies.cs using Google.JarResolver; using UnityEditor;
[InitializeOnLoad] public static class GCMDependencies { static GCMDependencies() { PlayServicesSupport svcSupport = PlayServicesSupport.CreateInstance( "AdsSample", EditorPrefs.GetString("AndroidSdkRoot"), "ProjectSettings");
}
move GCMDependencies.cs to Editor folder