Could Not Download Android Sdk Visual Studio For Mac

Could

Could Not Download Android Sdk Visual Studio For Mac Download

In this tutorial, you will learn, how to setup Android Studio on Mac OS Sierra and how to create a simple Ionic 2 project. And how to generate the Android APK file.

October 20, 2020 — Xamarin.Android 11.1.0.17 was published as part of Visual Studio 2019 version 16.8 Preview 5 and Visual Studio 2019 for Mac version 8.8 Preview 5.

Flutter Documentation says 'Hot reload loads code changes into the VM and re-builds the widget tree, preserving the app state; it doesn’t rerun main or initState'. So, it looks like if the app logic resides outside the main method, then Hot Reloading works.Try to refactor your app like below and then do Restart (green button). Any subsequent changes you make, will be HOT RELOADED when. This installs the latest Android SDK, Android SDK Command-line Tools, and Android SDK Build-Tools, which are required by Flutter when developing for Android. Set up your Android device To prepare to run and test your Flutter app on an Android device, you need an Android device running Android 4.1 (API level 16) or higher. After trying a bunch of suggestions, this simple fix worked for me. First I changed my deployment target in the info.plist from 9.3 to 11. After checking that my Apple SDK path in VS was pointing at Xcode11 and the iOS SDK version on my Mac was 13.0, I simply force quit Visual Studio and Restarted my computer. 'The Android SDK Directory could not be found.' I searched in google for a solution and I found out that I need to go to Tools - Android - Android SDK Manager, and then I realized the buttons are disabled. I did some checks: in Tools - Options - Android Setting for Android SDK Location and it's empty.

Prerequisite
1. Java
2. Android Studio

You must first install Java before installing the Android Studio.

Could not download android sdk visual studio for mac os

Install Java

Download Java 1.8 using the below link

Could not download android sdk visual studio for mac windows 10

Download the dmg file and double click to install the Java. Once you finished the installation, go to terminal and type

The above two command will return the installed Java version. If the above command is not working, then the Java is not installed properly or Java is not configured in the PATH. However, most of the times it won't fail.

Install Android Studio

Download the Android studio using the below link

Could

It is also dmg file. Double click and finish the installation.

Add Android Studio Path

Could Not Download Android Sdk Visual Studio For Mac Windows 10

After installing Android Studio, you must include it in the PATH. Execute the below command in the terminal.

Update Android Studio SDK

Open Android Studio and click SDK manager

Visual


Install the latest SDK tools like 5,6,7 versions. It will take some time depend on your internet connection.

Create Ionic 2 Project

You need the Ionic framework, before creating the Ionic 2 project. If you have not installed Ionic Framework, then visit the below link to learn, how to install the Ionic framework.

Create a new Ionic 2 project using

Could Not Download Android Sdk Visual Studio For Mac Os

After creating Ionic 2 project, add Android platform to the Ionic project using

Then generate APK using the below command

After generating the APK successfully, the terminal will display the APK generated location.

Could Not Download Android Sdk Visual Studio For Mac Windows 7

That's all. You were done.

Please note. Now you can install the APK in your Android phone by enabling the Install from Unknown Source in settings. However You are not able to publish this APK to Google Play store. To publish to the Google Play Store, you need to do some extra work. I write a separate post soon for how to publish your APK to the Google Play Store using Ionic 2 Framework.

While generating the APK in Mac OS Sierra, sometimes you will face the below error message

Error: Could not find Gradle wrapper within Android SDK. Might need to update your Android SDK - Android

If you encounter that error, then follow this solution.