SDK problem after GitHub import to Android Studio - android-studio

I am new to programming.
I have never coded and I have never used Android Studio and GitHub.
Sorry if I ask stupid questions.
I downloaded this project in ZIP on GitHub: https://github.com/raghavtilak/Paint
When I open it in Android Studio, I get an error message:
"The SDK path 'C:\Sdk\Sdk' does not belong to a directory.
Android Studio will use this Android SDK instead : 'C:\Users\jane\AppData\Local\Android\Sdk' and will modify the projectct's local."
What should I do to solve this problem?
Thank you in advance.

When you open the project in Android Studio it should ask you to change the SDK path automatically. If it does you can just accept it and it will change the path without you noticing and without any problems.
If it does not ask you, just search your SDK Path (on your computer) and change it in your local.properties in the project panel (or the windows explorer) in android studio.

Related

What to do if Android SDK is not found in Android Studio

I have installed Android Studio, but its not locating Android SDK, I even tried to change the directory, but in vain.
Please check the photo to see the problem
go to the SDK manager just like in you image, press on edit, you'll get a setup wizard that will download the SDK files for you, if you think it's already been installed try to use the following directory
C:\Users'your_username'\AppData\Local\Android\Sdk
this is where the SDK is usually downloaded to, also note that the appdata folder is hidden in the file explorer

Android Emulator Directory is Missing

I have recently come up with coding in dart and using flutter ...
after longtime spending for setting up SDK and stuffs for dart and flutter the only thing I need is an android studio set up and running SDK to it.
I'm actually running on Kali Linux and when I open an android studio I give it the directory file of the Android SDK but it says the folder is empty and there is no SDK (Sth like that ...). But I have downloaded the SDK recently... By the way when i click on next it warns me that the android emulator directory is missing!
Do the emulator or SDK needs a kind of root access !?
is there any way to connect the android SDK to vscode instead of an android studio?
Do android emulator only work on Ubuntu and no response for Debian based ?!
You don't need to download the SDK separately android studio will automatically install it, and you can even choose with version of the SDK you want.
If you haven't gotten that option when installing. Reinstall it form the website!
Not some stupid PPA or app market https://developer.android.com/studio

How to open an existing Flutter Project in Android Studio

I might sound noob here but I can't see a clear way of opening existing Flutter Project in Android Studio 3.1.2.
I checked this but it didn't work. So I want to know if there is a standard IDE way of doing this? I also can't find any docs clearly mentioning it. Do I need to install a 3rd party plugin?
After opening it as an Existing Android Studio Project, I get the following error:
The error is solved by running Get Dependencies. Is it a normal behavior?
Install Flutter plugin for Android studio: https://flutter.io/get-started/editor/
Open Android Studio
Open existing Android Studio project by using one of below methods:
EASIEST WAY: Drag your project folder and drop to Android Studio.
Other ways:
What works for me was to open existing Android Studio project like mentioned above, and then go to menu
Tools -> Flutter -> Flutter Clean
Then configuration window will open and ask you to locate flutter sdk. After locating the sdk, click OK and then the flutter functions will be available (Pub buttons, runs menu). After that you can proceed to get the dependencies (pub get).
It's basically cleaning the project folder of previous setting(s) which might conflicting with the system (android studio). But that won't happen if you get the project from source repository because all of the junk files wont be in the project folder.
The quickest way on macOS is
open -a Android\ Studio android when you are in the root project directory.
Alternatively, if you use the jetbrains toolbox, you can enable "Shell Scripts" in its settings. This will create a binary in the folder of your choice, so you have to add this folder to your PATH. Then, you can use studio . inside the Android folder, or studio android in the flutter project. The benefit of this, is it also works with other Jetbrains products (e.g. charm project_dir or clion project_dir. Unfortunately this method glitches out (for pycharm at least).
Looks like Android Studio can't load Android Application module from Flutter project automatically. I also have same problem, so in my situation Gradle can't be found, because of lack of Android project.
There's important note from official site:
Important: Do not use the New > Project from existing sources option for Flutter projects
I suggest, same is for Open option.
Just Open your project as normal, and then in [Android Studio > Preferences > Languages&Frameworks > Flutter > Flutter SDK path] select the path where you downloaded & unpacked Flutter SDK.
I know it's already late, but you can open an existing Flutter project in Android Studio by following these steps (make sure you have already installed Flutter & Dart plugin and Flutter SDK):
Click Open from File menu in Android Studio,
Go to the path of the project,
Click Open from the dialog,
When the project opens in Android studio, it will show an error of packages and dependencies. So, click on Get Dependencies on the top. Android Studio will automatically add all the required dependencies and packages.
There is a simple way of doing this in android:
Just Open your project as normal, and on the top right corner, click on Flutter Attach option, and voila!
See Attached screen grab!
Usually you can open your Flutter project in Android Studio simply when you right click on the android folder > Flutter > Open Android module in Android Studio but sometimes this option could be disabled, check this answer to enable..

Android Studio SDK Issue

I was installed new version of Android Studio but its not show the SDK .Any one help to solve this path issue.See this images.
Android studio configure that not show the SDk where i fix it path of sdk[enter image description here]1
Generally the stored path of android sdk in generally hidden.
So as per my experiences go as i say,
First allow your Pc to show hidden file.
Go to the following directory of your Pc or Lappy:
C:\Users\user\AppData\Local\Android
Here You can see your Sdks.
Open Android Studio
Press CTRL+ALT+SHIFT
In search bar type "sdk" .(Beside it you will see the android sdk location.Change it.)
Set the path of android sdk which you went into earlier in your lappy's directory shown above.
http://filehippo.com/download_android_sdk/download/dd03cc329af0cd74b0e34afce1b4888e/
Here's the link..
And I ain't on Skype. Sorry😔
Thanks to all who give me suggestion.
Now its fix to reinstall complete android studio.
jdk file croup t or missing that why its show many problem.
I copy sdk file in another place and paste again when i reinstall my android studio its fix:) and no need to be download again sdk packages.

Android Studio 1.0.2 laout-land folder now showing

Using Android Studio 1.0.2 (Windows).
How to make a res/layout-land folder?
I try, it seems to work (no error messages), but the folder does not show up in Android Studio.
However, the folder does exist in the file system.
I have some old project (converted from Android Studio 0.9.x): They seem to work better.
I had the same problem. You have to change your structure explorer from Android(I think its default) to Project. You will see the layout-land folder under res.
You can change the structure explorer in Android Studio from Android to Packages:
g
Also after restarting the Android Studio application I was able to see the land folder.

Resources