-
Notifications
You must be signed in to change notification settings - Fork 954
Flipper Doctor complains Android SDK is not installed #667
Comments
Interesting, thanks for reporting. What do you get if you run this from the command line? and also this: |
Thank you for pointing me in the right direction! As you surmised, the tool didn't detect my Android SDK in with either command. After looking at the source for The short-term fix for me is downgrading the version of Java I use by default, until Google finally updates their build tools for a current version of Java. |
I have this issue as well despite correct env info and my JAVA_HOME set to jdk 8 Env info is
It would be tremendously helpful if the doctor displayed some explanation as to why it believes it's failed. The current screen gives no actionable information to the developer. |
@ZacSweers are you using Flipper v0.30.1? |
@nikoant I am using Flipper v0.30.1? and also having the same issue |
@zlil, right, I think the issue was fixed after v0.30.1 released. Could you try build Flipper from master and check? |
Same issue when using v0.30.1 on Windows 10. I have customized the Android SDK location in Flipper but it still shows the warning banner.
|
This remains broken in 0.30.2 |
@ZacSweers still reproducible with Java 8? That’s strange because the problem was that SDK is detected using sdkmanager, but the latter is not compatible with Java 9+. For Java 9 and 10 we implemented is a workaround, but not for 11+. This issue is planned to be fixed in Android Studio 3.6 release: https://issuetracker.google.com/issues/67495440. As the issues with SDK detection are very environment-specific, could you please provide more information?
|
@ZacSweers I've changed implementation of Android SDK detection to avoid using sdkmanager, and also added some (rather minimal) feedback for failed checks in this commit: b625efe. Would be great if you can build from master and test this. |
Will give it a shot 👍
…On Fri, Jan 24, 2020 at 9:54 AM Anton Nikolaev ***@***.***> wrote:
@ZacSweers <https://github.com/ZacSweers> I've changed implementation of
Android SDK detection to avoid using sdkmanager, and also added some
(rather minimal) feedback for failed checks in this commit: b625efe
<b625efe>.
Would be great if you can build from master and test this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#667?email_source=notifications&email_token=AAKMJPQI7ERZ2EX52OMOR63Q7L6KXA5CNFSM4JTSEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3BD6A#issuecomment-578163192>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKMJPTUOC3DO5N5FIAGUCLQ7L6KXANCNFSM4JTSEXDA>
.
|
Unfortunately I'm unable to build from master locally. Running on mac and running
|
Actually I see now that my yarn version is old, despite being the latest available on homebrew 🤔 . Will try installing manually |
@ZacSweers 1.21 is newer than 1.5 (1.05). I don't think the problem here is in yarn, it rather looks like "electron" module was not installed properly. Could you check that it exists in node_modules? |
Just tried a fresh clone in better wifi and looks like everything works! No more reported errors and I was successfully able to use flipper with my android app 🎉 |
@ZacSweers good news! Thank you for checking this. I'm closing this issue then, SDK detection should work now disregard version of Java version. |
@nikoant I'm facing the same issue, everything regarding android is working fine for me, I'm not sure what the issue is here, could u please let me know what u think of this ? thanks. |
@a-eid on Mac, console apps and gui apps do not necessarily share the same environment. Try exporting your console env:
|
@paour same thing happening to me but that didn't fix it. |
Thanks @Victor502. |
You can also check on SDK manager at Android Studio the place of SDK :) |
In your terminal, run |
On Mac OS I put |
Flipper wants absolute path, maybe option to the GUI so the urls won't contain tilde? |
@SuarezLuis @Victor502 @quyentran-agilityio In my case this error shows and I am unable to update the sdk location. I am using mac. |
..\Android\Sdk\platform-tools> android_sdk/platform-tools
I have this error how i cansolve it |
🐛 Bug Report
I've been using Flipper since before the name change and it's always worked fine (still does).
However, on each launch, I get an error banner claiming there are problems with my install.
My Android SDK is configured correctly, and complete.
To Reproduce
Launch Flipper, or start Doctor.
Expected Behavior
Doctor should not claim there is an error with my setup. Of if there really are, it should describe the issue in a way that makes it actionable.
Environment
The text was updated successfully, but these errors were encountered: