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

Removing after #27

Closed
pashara opened this issue Mar 10, 2020 · 6 comments
Closed

Removing after #27

pashara opened this issue Mar 10, 2020 · 6 comments

Comments

@pashara
Copy link

pashara commented Mar 10, 2020

Hi!
Im trying to build android project. "Play Services Resolver" force resolve before build. As result,
com.amplitude.android-sdk-2.24.1.aar and all *.jar files (from amplitude package) was removed from project. So, I have error
AndroidJavaException: java.lang.ClassNotFoundException: com.amplitude.unity.plugins.AmplitudePlugin java.lang.ClassNotFoundException: com.amplitude.unity.plugins.AmplitudePlugin
What could be the problem?
P.S. Additional SDKs in project

  1. Appsflyer
  2. Firebase (Analytics)
  3. Facebook
  4. Amplitude
@haoliu-amp
Copy link
Contributor

Are you using Play Services Resolver yourself? It's not needed to import our plugin, you need to double click the package file and choose the library and files you need.

@pashara
Copy link
Author

pashara commented Mar 10, 2020

Hi!
Other SDK's require the use of force resolve.
So, for example, AdMob inside MoPub (forgot to specify in sdk's), Facebook & Firebase may require using Force resolve functions (or not?).
I do not use Play Services Resolver for import Amplitude. The fact is that the Play Services Resolver deletes the amplitude files from the project when a dependency check occurs.

@haoliu-amp
Copy link
Contributor

haoliu-amp commented Mar 10, 2020

Hi I think this issue you probably should check with https://github.com/googlesamples/unity-jar-resolver to see why it got removed. If it does, can they have config file for exceptions?

@haoliu-amp
Copy link
Contributor

I'm going to close this for now. Feel free to reopen it.

@pashara
Copy link
Author

pashara commented Mar 13, 2020

Helps to create file AmplitudeDependencies.xml in Amplitude/Editor with content
<dependencies> <androidPackages> <androidPackage spec="com.amplitude:android-sdk:2.24.1"/> </androidPackages> </dependencies>
Resolver put <package>com.amplitude:android-sdk:2.24.1</package> .... <file>Assets/Plugins/Android/com.amplitude.android-sdk-2.24.1.aar</file>
in /ProjectSettings/AndroidResolverDependencies.xml and now Resolver does not delete com.amplitude.android-sdk-2.24.1.aar file.

@haoliu-amp
Copy link
Contributor

You DON'T need to add AmplitudeDependencies.xml to your project.

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

2 participants