Can't find SDK Manager in SDK file - java

I am being pestered by eclipse when I open the program. I get two error messages; "SDK Platform tools component is missing! ..." and "Failed to get the required ADT version number from the SDK. The Android developer toolkit may not work properly".
Both messages give me the option to open the Android SDK manager. When I attempt to open the Android SDK manager from eclipse, I get an initialization and then nothing happens.
I'm aware this is a common problem. Many solutions say to find the Android SDK manager in the SDK directory, though I can't find it anywhere there. The path I am using is "C:\Users\Ant\AppData\Local\Android\sdk".
When I attempt to open the SDK manager from Android Studio, I get something come up, though I have no idea if it is the Android studio version of the SDK manager or not.
All I want to do is install some packages to get everything running smoothly. I have the feeling that I need to open the SDK manager from eclipse to do it though. Is this correct? Is there anything else I can do?

You should go and create the proper environment setup, It seems there is a confusion between Eclipse and android studio working env. Please make sure to install separately the working env. SDK are normally hidden files make sure you are suppose to see hidden files in your computer.
Thanks,
Ashish

Related

Unity3D: APK file missing

Every time I try and build my game, I am unable to find the APK file anywhere, I did however found the APK file in my recent folder, but it doesn't show up in the respective folders I initially selected or allows me to copy and paste the APK file into my Android device.
I don't even get any errors when the game is built (in fact, I get a message in my console stating that my build was successful) so I am confused to why my APK file is not showing up.
It happened after I recently updated my unity 5.6 to unity 2018.3.1 due to Oracle JDK is no longer free for commercial use and unity 2018.3 uses OpenJDK (I am using AdoptOpenJDK/JDK-12.0.1.12-hotspot). Once unity was installed, I didn't receive any errors only a few warnings within a few scripts (which was only a minor problem and I could solve easily).
However, when I go to player settings, I get this one warning: "failed to get available Android API levels. Make sure your Android SDK tools version is 25 or higher and you have an internet connection."
I made sure that my minimum API level is Android 8.0 'Oreo' (API level 26) and the target API level is Android 8.1 'Oreo' (API level 27), I also uninstall Android studio and reinstalled.
I even went as far as deleting all folders inside build tools and platforms from (appdata>local>android>sdk>buildtools) & (appdata>local>android>sdk>platforms) and updating the files for continuing the build.
However, all the methods I've tried have not to work, so I'm asking for help here. Please, does anyone know why is my APK file not appearing at all? Thank you in advance, I really appreciate it! :)
this solution helped me if Are you using the r22 of android SDK, if so, Google decided to move the aapt.exe from tools directory to build-tools//aapt.exe
A quick solution for this is co copy the aapt.exe file from build-tools and paste as shortcut on tools directory. Keep the shortcut name as aapt.exe
another solution is to download jdk(1.8 version is prefered)from oracle site ["http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"]and set it instead of the build-in jdk form the project preferences then reboot

Android Studio freezes/hangs when i try to open anything

Recently I upgraded my Android Studio to 3.1 and also my gradle to 4.4.
Since then android studio doesn't let me open anything. (Any project , any file location, etc). I am able to create a new project but if try opening an existing one it just freezes. And then I have to kill it through Task Manager.
I am also able to open the settings page through welcome wizard. There also I tried to change the gradle version manually, again while browsing to the location it just gets hanged. Same way as above
I tried upgrading the Java version, installing/uninstalling android studio and everything else I can but its the same.
Any help or suggestions will be appreciated
I encountered similar issue. Please check the system Environment Variable, the JAVA_HOME path should be set correctly according to Java installed in your PC; something like this in my PC "C:\Program Files\Java\jdk1.8.0_172"
This resolved the issue for me.
Cheers!
Herbs

Why JDK location can't change on Android Studio 3?

I was working on android studio. In this time I open another java software. After this my studio show below error.
If I open JDK setting and change the jdk location, it change but not save. If I restart studio the default location come again and show the error.
I don't find any help on google and youtube. Please anyone help me.
If you unceck the box "Use embedded JDK (recommended)" it should allow you to set a path to JDK manually. Please post back if there are any other issues.
However, I'd recommend you let Android Studio install its own JDK where it wants it, and then you install a separate one (or even better, make the other programs go look for JRE under the android studio path)...

Java android development starting

I wanna start with android programming. I am using eclipse and installed Android SDK. Then in eclipse i installed ADT Plugin, and after that installed every tool and file for 4.2(Jelly Bean) from SDK manager and also installed all extras from SDK manager (expect Intel x86 Emulator Accelerator - because i use AMD). Then when i create android application project i get this problems:
First, wizard for creating project is not closing after i click finish but it creates app (can see it in package explorer)
Second, i get errors in MainActivity and Values>styles.xml - In console it gives me errors No resource found that matches the given name 'Theme.AppCompat.Light', No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'., No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar', and these errors show in about 15 lines.
I tried adding appcompat-v7-24.2.0.javadoc.jar and appcompat-v7-24.2.0.source.jar files in Java Build Path (project settings), but that doesn't work either.
I really do not know what to do. Before i was using Eclipse Neon, and i even tried installing Eclipse Standard and reinstalling android SDK and ADT, but doesn't work. So please at least try to help me. Thank you in advance :)

Virtual Device Manager Disabled in Android Studio

I have installed Android Studio on my Windows 7 PC. But I cannot create the virtual devices on the studio as the button for AVD and SDK is disabled by default. How ca I enable them?
I haven't seen this error myself, but try going to
File -> Project Structure -> SDKs and make sure you have a listing for the Android SDK and that the home path is pointing to the correct location.
Well I found the problem. The gradle was not installed as my internet connection was not active. Make sure the Android Studio installs the gradle when you first start and create a project.
Go to the android-studio\sdk\tools\lib and search for AVD Manager and SDK Manager. If they are present, try running them.
While I do not know the actual reason for the disabled buttons, but this might just help in troubleshooting the problem.

Categories

Resources