GooglePlayServices.DefaultResolver can't find .jar in .aar file

55 views
Skip to first unread message

matei....@gmail.com

unread,
Nov 18, 2016, 5:10:28 PM11/18/16
to Firebase Google Group

I've been trying to run an app with the most basic implementation of Firebase in Unity (Android) for the past two days. I've tried nearly everything and still can't get it to work. Currently, I have only implemented the FirebaseAnalytics package from the Firebase Unity SDK.



This is the error I get when trying to run. 


Followed by this.



I opened up the .aar file with WinZip and renamed the classes.jar to firebase-analytics-9.8.0.jar, but when I run, the jar simply gets renamed back to classes.jar. I've also updated my JDK and JRE to the latest available versions and updated the JAVA_HOME variable to the appropriate path (but maybe I set it to the wrong path?).

Really in need of some help here. Can't even get off the ground and I'm afraid there will be many more errors like this with this Firebase Unity SDK.

Stewart Miles

unread,
Nov 18, 2016, 7:29:06 PM11/18/16
to fireba...@googlegroups.com
Hi,

I recommend doing the following:
  • Verify JAVA_HOME *really* points at your Java directory.  JAVA_HOME/bin should contain the Jar executable.
  • If you're on Windows and you've just set / changed the JAVA_HOME environment variable through the control panel you'll need to close Unity and reopen it.  If you set the variable as a system variable you'll need to either log out / log in or reboot for it to take effect.

Here's the JAVA_HOME variable on one of my Windows machines and the jar executable in the bin directory:

C:\>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_77

C:\>dir "%JAVA_HOME%\bin\jar.exe"
 Volume in drive C has no label.
 Volume Serial Number is 7E19-65C1

 Directory of C:\Program Files\Java\jdk1.8.0_77\bin

07/21/2016  01:18 PM            15,904 jar.exe
               1 File(s)         15,904 bytes
               0 Dir(s)  762,214,064,128 bytes free

Cheers,
Stewart


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/44de9c45-294a-4f94-b10d-b073c48c6375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stewart Miles

unread,
Nov 18, 2016, 7:30:53 PM11/18/16
to fireba...@googlegroups.com
FYI: The source for the Play Services Resolver is available here https://github.com/googlesamples/unity-jar-resolver if you're curious.

Cheers,
Stewart
Reply all
Reply to author
Forward
0 new messages