Android Studio : Missing SDK - java

I am on windows 7, i have installed all the java environnement.
JAVA_HOME is working.
When i try to install android studio, he display me a window that said :
Missing SDK
So it's impossible to create or open a project. I have nothing on AppData folder.
I saw all the posts about this question on stackoverflow, nothing helped me.
I try everything, do you have an advice or an idea.
Thx.

FINALLY, I had the same exact problem downloading the latest software 3.0.1 for windows. This process works, before hitting open a new project, go to "configuration" at the bottom of the screen find settings for SDK manager and route the separately downloaded SDK files location to the file. Then any other additional SDK selections you need you can simply click on the box and select it and it will download. No other answers I found helped me except this one. Very simple solution but not so simple if your a first-time user learning this program.

The SDK folder was empty for C:\Users\userID\AppData\Local\Android\SDK
For displaying hidden AppData or Local subfolder: Tools, Folder Options, View, Advanced Settings, Files and Folders, select option Show hidden files, folders, and drives.
The SDK folder should contain the following subfolders:
build-tools.
emulator.
extras.
patcher.
platforms.
platform-tools.
sources.
tools.
Downloaded the zip file to create the tools subfolder
from link, sdk-tools-windows-4333796.zip
of section, Command line tools only, Platform Windows
within URL, https://developer.android.com/studio
Zip file name: sdk-tools-windows-4333796.zip
Copied this zip file into C:\Users\userID\AppData\Local\Android\SDK
Unzipped this file, which created tools subfolder.
Downloaded zip file to create the platform-tools subfolder
from link, Download SDK Platform-Tools for Windows,
within URL, https://developer.android.com/studio/releases/platform-tools.html
Zip file name: platform-tools_r28.0.2-windows.zip
Copied this zip file into C:\Users\userID\AppData\Local\Android\SDK
Unzipped this file, which created platform-tools subfolder.
Open Android Studio and follow prompts. Other subfolders will be created automatically.

you need to download android sdk here
and extract it and give its location in android studio settings > system settings > android sdk.
Hope this will help.

Related

Can't find the libluajava.so

I'm using the YOUKU SDK in my Android project, and to my Beta users, their app will crash becasuse of the libluajava.so, like this:
So I google the libluajava.so and download it, put it in the following folders.
// I don't put it in the armeabi folder or the armeabi-v7a folder because the project will say something like there are some duplicate files
But the problem still unsolved, the app still crash because something like that:
But I can't find the 64-bit file on the web, so how can I fix this?
To build .so, you can use this procedure -
Add android ndk tools to a location where your android sdk is present.
Now in your eclipse project, create a jni folder with all your .c and .h files and also your Android.mk file.
Now in your eclipse, goto Run -> External Tools -> External Tools Configuration. For location, press "Browse File System" and choose the "ndk-build" location(which you have put in android sdk folder) For Working Directory, press "Browse Workspace" and choose your eclipse project and your jni folder. For example like this - ${workspace_loc:/yourproject/jni}
Press Apply and then press Run. You have your .so in libs folder of your eclipse project.

NeuronJ plugin in ImageJ .JAR file not opening on MAC OSX10.10.4

I am trying to download and add a specific plugin called NeuronJ to ImageJ. ImageJ downloads fine and I can open it. The .JAR file for the NeuronJ plugin downloads but does not open and the MAC gives me the following message 'The Java JAR file NeuronJ.jar could not be launched, check the console for possible error messages'. Would anyone know how to solve this problem? The website I am using to download this from is:http://www.imagescience.org/meijering/software/neuronj/
NeuronJ.jar is an ImageJ plugin - so you don't execute it directly. You put it in a place ImageJ will find it on startup (the {ImageJ}/plugins directory). Directions for manual installation can be found on the wiki.
Once you install the plugin manually you just restart ImageJ and then NeuronJ should be available from the Plugins menu.

How to open Android source code in Eclipse ADT

I am new to Android development and I have downloaded Source code of Cameraapp from Google web site from following locaiton:
https://android.googlesource.com/platform/packages/apps/Camera
I am trying to build and compile it into the Eclipse ADT environment. However when I open the folder using File> Import> Android> select existing project, I do not see the folder being able to be selected as a project.
I also noticed that there is no Android Manifest file inside this folder. How is this possible?
I read somewhere that camera app does not have its own Android Manifest file but it uses manifest file from the Gallery App. Which may be right. But my question is that how can I even compile this application?
Or would I have to compile the entire android application folder? Hopefully that is not the case.
If you do not have manifest file in the project then you have no option than to create an empty android project and copy the corresponding res/ and src/ file to your empty project.
Then modify your manifest file to define your activities and permissions. Then you can build and run your project in your ADT workspace.

How to put java property file in apk?

I have an android app project that uses an android lib project from third party (don't have source). The "ant clean release" generates the apk and the app runs well.
Now a java property file is added into the lib project, locates under the root of the project folder. Build and install apk, log shows the newly added property file is not loaded. Unzip and dex2jar the apk, cannot see the property file from anywhere. So seems like the property file is not included in the apk build. So my question is how to include the property file into apk, should I do anything extra? Thanks for the help.
If you can configure the location where the 3rd party library reads the config file from, you can put it in res/assets. The files in this directory will be packaged into your .apk file and installed as files in the Android file system.
I had the excact same problem. The solution i found usefull is explained here:
http://www.maxters.net/2012/08/android-source-apk-x-res/
You will have to modify 3 files under build/core, then you can add any file/folder to your apk after updating your Android.mk file.

Running Hierarchy Viewer

I am trying to run Hierarchy Viewer. developer.android.com says to
"Connect your device or launch an emulator.
From a terminal, launch hierarchyviewer from your SDK /tools directory."
I tried finding the hierarchy viewer in sdk/tools, but couldn't find it. I realize my difficulty may just be the result of me being a total noob so I could just be missing something basic.
How do I run hierarchyviewer?
Thanks!
(Sorry, I was meant to add this as a comment to Mayra's answer below)
I was using SDK_r06 and HierarchyViewer.exe was in the /tools folder.
I upgraded to SDK_r07 (using Android SDK and AVD Manager) and now HierarchyViewer.exe is not in the /tools folder.
I re-downloaded the SDK from the Android website and it is not in the /tools folder.
Has it been left out of the SDK_r07 release of the SDK?
in your tools directory create a file named hv.bat
and add this code to that
java -Xmx512m -jar ./lib/hierarchyviewer.jar
its a problem with windows file directory, but we know that hierarchyviewer.jar is in lib!!!!
or here is the original batch http://groups.google.com/group/android-developers/browse_thread/thread/30124afa7a708c96/c51b4fc2e979a721
Just had the same issue. It looks like version 7 of SDK Tools does not include the executable for unknown reason (you may download the SDK and see that it's not there). Therefore, an update removes the executable even if it was there before. However, the executable is not an *.exe, but just a *.bat, which uses the HierarchyViewer.jar in the lib folder.
So I just copied the hierarchyviewer.bat file from the 6th version into the tools folder and it worked.Note, that you have to type hierarchyviewer or hierarchyviewer.bat to start it, not hierarchyviewer.exe.
I assume you are on windows.. to open a terminal window run start -> run and type "cmd". You should see a black window with a cursor.
You need to open the tools directory by typing cd C:\full\path\to\tools\directory filling in the path to where you installed the sdk.
If you type dir you should see a list of files located within the folder, one of which is hierarchyviewer.exe. Run that file (just type hierarchyviewer.exe)
launch your cmd if you on windows then type
cd\C:\android-sdk-windows\tools then enter now you are in tools folder then type hierarchyviewer
then enter , now you should see hierarchyviewer
and here's alink of how to open it and use it http://developer.android.com/guide/developing/debugging/debugging-ui.html and also good article
http://mobile.tutsplus.com/tutorials/android/android-tools-using-the-hierarchy-viewer/

Categories

Resources