-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.4.3.1] Android SDK not found with Android SDK 25.3.0 or higher. #8464
Comments
+1 Yes same here! |
Meteor 1.4.3.x now ships with Cordova version 6.4.0. This requires Android Studio SDK version 25. This should be listed here, but it's not: https://cordova.apache.org/docs/en/latest/guide/platforms/android/ Addresses meteor/meteor#8464
Meteor 1.4.3.1 uses Cordova 6.4.0 which I'm fairly sure requires Android SDK version 25 to be installed with the Android Studio SDK Manager (whereas previous versions used 24 or 23). I just updated the Guide to reflect this (see above commit) as I'm almost positive this is required. We should probably update If you don't have the full Android Studio, you should be able to start the SDK Manager with something like:
Can you report back if this works for you and we'll get the |
Thank you for your answer. Meanwhile, I have installed Android SDK version 25 twice :
But as soon as I tried to bring Android Studio to the party (to build signed apks, manage virtual devices, etc.) it prompted me to upgrade some tools in that folder, including Gradle : I accepted the upgrade, which broke things again. I then took a look into Gradle's former folder : it had been moved elsewhere - hence the Meteor/Cordova error about Gradle, I guess. Will now try to get a stable setup by reusing a copy of this folder and not doing the faulty Gradle upgrade, to see if it is a viable workaround. |
OK, I can now confirm that the most recent upgrades in Android Studio (SDK Tools + Gradle) break the link between Android and Meteor/Cordova, at least on the Mac : just upgrading the SDK Tools to latest version is enough to raise the errors I described in my first post, with no obvious way to fix them. As for Gradle, Meteor tries to find it inside The only workaround I found up to now is to reuse an old It seems to work for the moment, but I don't know if it will be useable for production very long. An advice to those who would be willing to try this workaround : above all, keep a zipped backup of your previous SDK folder next to it before touching anything. |
@YannLeBihan I'll have to revisit this because I tested Meteor 1.4.3 with Cordova 6.4.0 on macOS Sierra before we released Meteor 1.4.3.x and it worked fine. Also, my above command for running the SDK Manager was incorrect, my apologies. It should have been:
(Note In case it's any help, here's what my SDK Manager looks like: This also seems to possibly be a trending issue right now as a search for the following returned a number of active issues, such as this one:
Hope this helps until someone can look at this more! |
So I'm running Mac Os El Capitan 10.11.6.
Still seems incorrect I'm afraid. It gives me...
I can run sdkmanager using that path. And made sure that I have installed all relevant packages for Android platform-25 etc. but still this happens...
Has anyone any more insight into what's happening here? Unfortunately @YannLeBihan 's Suggested workaround of pointing to an older android-sdk-macosx directory isn't practical for me. |
Solved (temporarily) by replacing the new updated 25.3.1 Android SDK Tools with version 25.2.5:
I had the same issues after this morning's update: Android Studio to ver. 2.3, Feb 24 build + sdk&co.
|
@loredanacirstea Yes that worked for me also. Thanks for the workaround and the link. I did not have to uninstall Android SDK Tools 25.3.1, I just switched out the tools folder. Feels wrong though. |
Android SDK 25.3.0 has breaking changes that prevent Meteor from finding it properly. Anything in the 25.x series _before_ 25.3.0 should work find. https://developer.android.com/studio/releases/sdk-tools.html Relates to: meteor/meteor#8464
I certainly didn't test with Android SDK Tools 25.3.x, but rather 25.2.5 as you can see in my screenshot. Android SDK Tools 25.3 (which came out after Meteor 1.4.3) definitely has a lot of breaking changes according to their release notes. This will need to be looked at and if anyone who uses Cordova on a more regular basis is able to look into it, it would be greatly appreciated. Unfortunately, it's not a regular occurrence for deep-dives into Cordova so this may take a bit to get resolved. Furthermore, the changes appear substantial, though I'm hoping that's just at first glance. The good news is that if you stick with Android SDK 25.2.5 (or anything in the 25.x series before 25.3.0) for the time being, you should be okay; my builds still work properly with 25.2.5. I've updated the Guide to clarify this limitation with meteor/guide@adc963a. Help requested! |
This link does provide working SDK tools 25.2.3 : http://androidsdkoffline.blogspot.fr/p/android-sdk-tools.html (eventhough it looks weird) |
The 25.2.3 tools are still linked from the official Android source (at the very bottom), so no need to use the blogpost link at the current moment (Though they appear to point to the same, official sources): |
I guess the Cordova team is working on it: |
Thanks a lot for the help. I managed to change the tools directory and move on from the Android SDK error. However, now I get an error regarding gradle plugin. Any ideas about what's going on? ` FAILURE: Build failed with an exception.
|
I'm on Linux, I uninstalled android-studio and only installed tools and platform tools. I installed tools_r25.2.5-linux.zip and I still have a problem. Status of the individual requirements: ✓ Android SDK ✗ Android target: Android SDK not found. Make sure that it is installed. If it ✓ Gradle this is in my .bashrc, although I doubt it is a problem with the PATH export ANDROID_HOME=/opt/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools export PATH=$PATH:$ANDROID_HOME/build-tools EDIT: This is also a fresh install of meteor, I'm on |
@MrGarrowson What happens if you type the following at your command prompt?
and...
It's entirely possible that you should have |
@abernix Thanks for the reply, I don't have $ANDROID_HOME/bin and if I run |
@ignacy130 Yep, thanks, fixed typo! |
Do we have any idea on when this will be resolved? We are using BuddyBuild for our Android/iOS build, which is failing because they are using the newer Android SDK. I can probably do the hack to the build.gradle file that allows it to work but I don't know how to hook into the build cycle to make the change. I'm still working on that. Thanks |
@scottburch If can install and use Meteor v1.5.2-beta.8 then you should be able to build with the latest versions of Android. Not sure when official 1.5.2 release will drop, but guessing soon. |
Yes, we did that and now we get the other error about the Manifest merge with SDK 26.
… On Aug 8, 2017, at 1:59 PM, skirunman ***@***.***> wrote:
@scottburch <https://github.com/scottburch> If can install and use Meteor v1.5.2-beta.8 <https://github.com/meteor/meteor/tree/release/METEOR%401.5.2-beta.8> then you should be able to build with the latest versions of Android. Not sure when office 1.5.2 release will drop, but guessing soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#8464 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAGVgBYzBhtL6eTRGzzNVzK3W0CWXJ0Nks5sWMwjgaJpZM4MVmZH>.
|
We were experimenting with BuddyBuild and ran into some issues. However, we are able to build just fine on MacOS. Can you build you app on your local dev machine with 1.5.2-beta.8 and Android SDK tools v26.x.x? |
@skirunman We just got done working with BuddyBuild to get the build working with 1.5.2-beta.8. We still have a little bit of work to do, as soon as we have verified the builds on the mobile devices I will update this thread with the patch that we have and how we used it. |
@skirunman Here is our buddybuild_postclone.sh file. We had to include a patch for a known issue as well as the directions from the buddybuild instructions to build meteor. The patch is if you get errors during the manifest file merge. IMPORTANT: In addition, the BB guy had to set a flag to stop the BB build from doing the cordova step since meteor was doing that already which caused the build to fail with:
buddybuild_postclone.shcurl https://install.meteor.com/ | sh cat bbgradle.patch >> .meteor/local/cordova-build/platforms/android/build.gradle bbgradle.patchconfigurations.all { |
@scottburch Thanks, we may give this a try again. |
Ran into the same issue after upgrading my Android Studio installation for other reasons. I cannot upgrade to Meteor 1.5.1+, since it breaks my app due to #8950. Will the Cordova fix be downported to 1.5? Until the fix has been released, what's the best configuration of Android Studio for now? I am a bit puzzled since there are so many suggestions in this thread. According to the current Meteor guide, Android SDK tools 26.x should be ok. I have 26.0.2 installed on my Mac, and it doesn't work. I'm using Android Studio 2.3.3. I also noticed that the folder ~/Library/Android/sdk/tools/templates is missing on my machine. Update: It worked with 25.2.5 |
@derwaldgeist I've got it working again with the updated Android Studio version by updating meteor to the next 1.5.2 version (in beta for now). |
Unfortunately, I cannot update to 1.5.2 until #8950 has been fixed. |
Thanks @narigondelsiglo, it worked for me, with android-25. |
I came across this same issue when running Cordova Android and SDK on Ubuntu via Terminal. But, if I tried downloading Android Studio, instead, of non-zip linux file extension through the terminal - not the liinux zip file of Android Studio website - same issue upon trying to do Cordova build android command. However, when I'd downloaded then used the Android Studio linux zip file, I couldn't find the apk file. I'd have have to change where certain files are located before I could do the build. |
Problem gone. So we can be assured that the next version of Meteor will fix this issue. |
@abernix Can we close this out along with the other 6 issues tagged with Milestone Release 1.5.2? We are releasing a new version of our product and just want to confirm all these issues are in fact fixed in 1.5.2. Thanks! |
I'll close this based on the comment above from @lesliechw (Thanks, Leslie!), but the other issues on the milestone are certainly not confirmed fixed unless you or someone can help test them! If they are still on the milestone, they are things we didn't get to and will be moved to a new milestone once they've been evaluated. Your help would be appreciated! |
@Atout-Agile thank you for the download link |
@abernix just FYI as I see this is closed now. Meteor 1.5.2.1 works ok with all latest versions within Android Studio (including SDK Tools - 26.1.1 ) |
Good afternoon, I'm new MacBook-Pro-Alexey:Enter av$ meteor add-platform android Your system does not yet seem to fulfill all requirements to build Please follow the installation instructions in the mobile guide: Status of the individual requirements: |
Hi all. |
Problem has gone after full reinstall meteor through Choco. And changing JDK from v9 to previous 1.8 |
Same problem here, JDK 1.8, Android Studio 3.0.1, Meteor 1.6, Tools 26.1.1 on OSX Sierra |
same.. after upgrading to 1.6 the build command still worked, but after removing and adding android platform getting: |
Are you using java9? |
Same issue JDK 1.8, Android Studio 3.0.1, Meteor 1.6 |
@MaxShv Could you clarify what "Same issue" is by providing detailed error messages and steps? There are a number of errors reported in this rather large and old thread. Also, please make sure you have Android SDK 26 installed (older versions should be okay as well but 27 will be problematic for the time being). In fact, for the sanity and reduced noise of the 37+ participants in this issue who may have having different issues, I'll lock this issue and ask that this be taken up in a new issue. We're currently analyzing and attempting to address Android/Cordova issues in preparation for 1.6.2, so please do take the time to open a new issue so we can look at it! Thanks! |
Hi,
Tried this today on two different machines running macOS Sierra 10.12.3 :
meteor add-platform android
Always got the same errors :
✗ Android target: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
✗ Gradle: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Here's what I tried :
$ANDROID_HOME
and$PATH
after setting them like said in the Meteor Guide : both are OK;meteor remove-platform android
andmeteor add-platform android
: same errors;I'd like to know if others are experiencing the same issue, and if they found a solution or workaround.
Thanks in advance !
The text was updated successfully, but these errors were encountered: