[Unity] Unable to determine which Android packages are installed

8,074 views
Skip to first unread message

pedrortz

unread,
Jun 10, 2017, 12:41:28 PM6/10/17
to Firebase Google Group
Hi!

I have just downloaded Unity Firebase 4.0.0, and when installing a black/console window popped up momentarily trying to get the installed Android packages (I dont remember exactly the contents of that window), but there was an error message saying "android" command is deprecated and explaining alternative ways of doing it.

After a few seconds the window closed and an error popped up on Unity console:

Unable to determine which Android packages are installed.  Failed to run /Users/xxx/dev/adt/sdk/tools/android.  /Users/xxx/dev/adt/sdk/tools/android: line 115: ${trysdkresponse,,}: bad substitution
 (2)
UnityEngine.Debug:LogError(Object)
GooglePlayServices.<GetAvailablePackages>c__AnonStorey7:<>m__F(Result)
GooglePlayServices.ProgressReporter:Update(CommandLineDialog)
GooglePlayServices.CommandLineDialog:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


I have no idea now if the installation is corrupted and how to I get back to the old version.

I'm on OSX, I have Android SDK Build-Tools 26 installed, Android SDK Platform Tools 26.0.0, and Android SDK Tools 26.0.2.

Best

Stewart Miles

unread,
Jun 12, 2017, 1:16:09 PM6/12/17
to Firebase Google Group
It looks like the backwards compatibility in the old SDK manager ("android" tool) isn't working correctly.  I've contacted the responsible team to see what's going on here.

You have a couple of options to workaround this for the moment:
  • Downgrade Android SDK Build-tools to 23.0.3
  • Open the Android SDK manager and upgrade the following packages to latest:
    • Android Support Repository (version 47)
    • Google Play services (version 41)
    • Google Repository (version 53)
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/b3909b2f-fb39-46b2-938e-3ada928a9dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Fu

unread,
Jun 14, 2017, 9:53:54 AM6/14/17
to Firebase Google Group
 updating the packages to latest fixed it for me

Stewart Miles

unread,
Jun 14, 2017, 12:44:26 PM6/14/17
to Firebase Google Group
Richard, I'm glad you got past the problem.

FYI: We still see issues with latest.  The Android package upgrader is still very broken when trying to use the "android" wrapper for the new sdkmanager tool.  We're working on a fix but we've uncovered some missing features in the sdkmanager that the Android Studio team are also working on addressing.

Cheers,
Stewart

On Wed, Jun 14, 2017 at 2:07 AM, Richard Fu <richa...@gmail.com> wrote:
 updating the packages to latest fixed it for me

--
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.

Stewart Miles

unread,
Jun 16, 2017, 10:05:33 PM6/16/17
to Firebase Google Group
We pushed a 4.0.1 bug fix release that should resolve this issue.  The Jar Resolver now supports the new Android sdkmanager.

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