"Please select Android SDK" - newbie question - Android Studio

0
down vote
favorite
I am a new user to Android Studio, so this may be a simple question. I have searched around, and found a couple tips, but nothing that worked...
I have a zip packed from Udacity that I am trying to open/run in Android Studio. The package is here - https : // d17h27t6h515a5.cloudfront.net/topher/2017/April/58e82999_firebase-analytics-green-thumb-android/firebase-analytics-green-thumb-android.zip
(sorry the link above is a bit broken...as a new user it's not letting me post a URL, but posting the package link is kind of essential to help answer this question )
I have no instructions as to how to get this into Android Studio. Left to my own devices, I am currently stuck at a place where, if I try to run the app, I get an error saying "Please select Android SDK".
I have checked everywhere for a solution to this, and the only two things I've found were:
Making sure the path to my Android SDK folder is correct within Android Studio settings (it is)
Making sure the same path is matched in the project local.properties file (it is)
The fact that these are both set properly (I think) leads me to believe that I just did the whole import wrong and should start from scratch. But I don't really know what to do with that zip file to get it (properly) into Android Studio.
Initially I just went to File > Open and then selected the project build.gradle file from the zip package. Was that even the right thing to get this started?
Thank you in advance for any help that can be offered!

Please take a look at this:
https://stackoverflow.com/questions/34353220/android-studio-please-select-android-sdk
---------- Post added at 03:25 AM ---------- Previous post was at 03:25 AM ----------
Please take a look at this:
https://stackoverflow.com/questions/34353220/android-studio-please-select-android-sdk

Related

OS.NB Not existsing Error

Hi All,
My first post. Seems to be a trivial error.
I sm running throught the backup procedure outlined in http://forum.xda-developers.com/showthread.php?t=462926. Sticky is above.
Steps that I am having probelm with:
- Now select (c) cook a rom, then (b)
It'll start up the buildOS + Package tools program.
- Select the buildos tab.
- Select "load rom" and navigate to your kovskykitchen folder.
- Press ok.
I get this exception when running the Package Tools after select the kovskykitchen folder.
As I understand it is the image file that does not contain it. I have downloaded the UK Generic as per the post and also from another loaction to make sure it wasn't corrupt.
I also downloaded a Touch-it Rom and the SEX1 ROM to try them also.
Still no dice. All help appreciated.
Thanks
In reply to my own Post.
Humble Pie aplenty being eaten over here. All you can eat.
Thanks to the link for the BioHazards walkthrough, which is exectley the same, it seems I missed a vital Step. I am a nub, Was that out loud? Anyway
Below is what I should have done:
- Start kovskykitchen.cmd
- Select (e) extract a rom, then (b) and let it work through.
Then:
When it's finshed it'll go back to the main menu.
- Now select © cook a rom, then (b)
I am eating enough humble Pie. I hate to start forums on the wrong foot, so Please go easy on the name calling. I post this in hope that someone else learns from my mistake. READ THE INSTRUCTIONS LINE BY LINE.
Thought I learnt that when I started programming

creating personalized roms

my question is this, say for example I have my phone setup just as I like with the theme of my choosing, htc music app instead of the stock android app in the cyanogen mod. i would like to be able to create a rom from this setup that I could then just load on my phone as oppsed to loading a cm mod, then installing music player, then installing the theme. before the flaming begins, i tried the search to no avail. i am aware of how to sign the zip and all of that. just a point in the right direction would be MUCH appreciated.
Its something I would like to be able to do as well. According to Haykuros twitter hes going to be making a video about android rom cooking soon so that should help
jholt0130 said:
my question is this, say for example I have my phone setup just as I like with the theme of my choosing, htc music app instead of the stock android app in the cyanogen mod. i would like to be able to create a rom from this setup that I could then just load on my phone as oppsed to loading a cm mod, then installing music player, then installing the theme. before the flaming begins, i tried the search to no avail. i am aware of how to sign the zip and all of that. just a point in the right direction would be MUCH appreciated.
Click to expand...
Click to collapse
This should've gone in the Q&A section. Will probably get locked soon.
But in response to your question, I guess you could grab the CM rom, then grab the theme you use and overwrite the files in the rom, and then overwrite the music app with the HTC music. Resign and you got your update.zip customized how you want it.
xidominicanoix said:
This should've gone in the Q&A section. Will probably get locked soon.
But in response to your question, I guess you could grab the CM rom, then grab the theme you use and overwrite the files in the rom, and then overwrite the music app with the HTC music. Resign and you got your update.zip customized how you want it.
Click to expand...
Click to collapse
Thanks for the help and my apologies for the wrong section
how do you resign it?
joey3002 said:
how do you resign it?
Click to expand...
Click to collapse
by searching.
Stericson said:
Automatic version!
Do not use this to sign APK files in Vista or windows 7! It will cause your theme to loop phones when placed on a device. Only use this to sign update files if your using those O/S's
Note, this will not work if your SDK or the path that you place this in has any spaces in the dir name!
An Example of this is c:\users\Nikki and Stephen\sdk\tools
Try to put the SDK and the contents of the zip in a dir where the names are all together and not like the one above.
I have made a batch file that will automate the entire process of setting up to use the signing tool made by JF. This batch file will set the CLASSPATH, set the PATH, install the registries, and will even allow you to sign files manually if you wish. I plan on building onto this batch file to include other things. However, for the moment, it will only include what you see here.
In order to use this you should have downloaded the sdk already. Simply extract all of the files into the tools dir of your sdk, and run autosign.bat follow the instructions and go through the options one by one, starting with 1 working through 4. You can however, put the contents of this zip anywhere on your computer and it will work. It is just better to put them into the tools dir of your SDK. Especially for the consideration of future versions.
Autosign .zip: http://www.fightforthepits.com/Androidstuff/signing.zip
Want to set up the signing tool manually?
Here is the link for the signing tool: Http://www.FightForthePits.com/testsign(2).zip
Before using this you need to know how to set this up:
Now you will need to add the tools dir of your sdk to the environment variable CLASSPATH.
FOR XP:
Right click on My Computer click properties, then choose the tab that says advanced.
Click the button that says environmental variables.
Go to system variables find the one that says CLASSPATH
double click it
go to the end of variable value.
There should be a semicolon ; at the end, type in the path to the testsign.jar located in the tools directory of your SDK
for example the path to my testsign.jar was c:\sdk\android-sdk-windows-1.0_r1\tools\testsign.jar
If CLASSPATH is not in your system variables then create it.
Secondly, Find the system variable called PATH and add to the end of it, the full path to your sdk directory.
For example, mine was c:\sdk\android-sdk-windows-1.0_r2\tools
FOR VISTA:
Open a cmd prompt.
Replace THEEXACTPATHTO-TESTSIGN with the path to the dir that holds the file testsign.jar.
Type:
echo %CLASSPATH%
If it is returns %CLASSPATH%
Type the following:
set CLASSPATH=THEXACTPATHTO-TESTSIGN\testsign.jar
If it comes back with something else then
Type the following:
set CLASSPATH=%CLASSPATH%;.;THEXACTPATHTO-TESTSIGN\testsign.jar
For Example, when I type this it looks like:
set CLASSPATH=%CLASSPATH%;.;c:\Android\SDK\tools\tests ign.jar
To set the PATH
Replace THEEXACTPATHTO-SDK with the path to the tools dir of your SDK.
Now type:
set PATH=%PATH%;.;THEXACTPATHTO-SDK\tools
For example, when I type this out it looks like this:
path-%PATH%;.;c:\Android\SDK\tools
Now through doing this you have done two things, first off you have made the resigning process extremely easy, secondly you will not have to cd to the tools dir of the sdk to use adb or any other tool in the sdk.
Signing the Files:
Now right click the reg file that you extracted and choose to install it, or merge.
Now, right click an apk, do you see an option that says ResignApk? That's how you will resign your .apks and .zips.
When you choose it a cmd window should open for a few seconds and then close. the file you signed will be overwritten with the new resigned file.
If you find the right click menu not working for some reason you can type the following in cmd to sign your files: java testsign whateverfiletosign
Click to expand...
Click to collapse
.apk's not showing up after flash in resigned .zip
Ok, so I've created a ROM to my liking. All the .apk's I normally use and got rid of the ones I don't. My problem is after I customized the ROM and flashed it none of the .apk's I added showed up. The only ones that showed up were the paid apps. I never opened the .apk's and made changes. I assume I don't need to change them to .zip resign and back to apk. Do I? I am using Windows 7 though and am able to resign no problem. Thanks to anyone who replies.

*GOIN CRAZY!* Creating ADW theme but getting errors

so this is my first attempt on creating adw theme from the directions given here but here is the problem:
ok so to start off i have downloaded the tools in the android-sdk
set up eclipse and have all the resources the need.
i start a new android project and choose to start from existing source and choose the adw template, but then in the window on the top it says : '! The API level for the selected SDK target does not match the min SDK version'
Ignoring that caution and go ahead starting the project choosing Android 2.2 Build target.
Now the problem starts here, when i go in file explorer and navigate to src/x.x.x to rename the package to what i want it in the anroid manifest, it gives me errors in the main.java (the file inside src/x/x/x)
When i open the java file it has 'x' on some strings in the right area and has errors in Mains/Icon Adapter on 4 strings.
I try to rename the folders the readme tells me to, i right click on x.x.x and refractor>rename, write the name i want it to be but errors errors errors and thats only step 2 of the process! ive been trying for 2 hours now and cant get it to work, ill go insane, im new to developing so help will be appreciated a lot
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Thanks I'll try that, and I love your sense launcher, using it right now
Might make a theme based on it
EDIT: ok i looked into the strings and all of them had 1 thing in common is that they all had @overide before it started while other strings didnt, so i removed the @overide and voila, no errors!
JAguirre1231 said:
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
import package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Click to expand...
Click to collapse
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
bump. im in the same boat, trying to get any theme example to work, and having same issues.
webstar1 said:
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
Click to expand...
Click to collapse
Having the same problems . Can someone please help us, I spent much effort drawing my custom icons, and I'm not going to just give up yet.

Deploy example files

Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
frank-floripa said:
Being new to Java, Android OS and Android Studio, I am a bit overwhelmed by all the information and hope I am asking the right questions on the right forum. I am developing an application where the user creates and edits files of a specific format. I want to include example files in my deployment so that the user can play with them right away. Now my questions are:
How do I include those files with Android Studio?
How do I define/create a directory for these files?
What would be standard locations for this directory which allow the user to access the files with a file manager?
Click to expand...
Click to collapse
I've not yet made the transition to Android Studio, but in Eclipse there's a folder called /assets in the project structure. That folder gets built into the root of the APK. You can then access files in the /assets folder with the AssetManager.
Android puts tight controls on your access to devices resources. Each application has a default location for files that it can manage. You can retrieve the default working directory through the app Context. Check out Context.getFilesDir(). The application has the necessary privileges to read and write files to that location.
The crucial thing about internet search is keywords. The one I didn't know is "assets". Together with "android studio" I found a wealth of valuable links. Thanks for the help!

I can't edit studio.exe file in Android Stuido 1.3

I'm running Android Studio 1.3 (I think it was the latest version) in a 4GB RAM pc, I've searched about how to make Android Studio take less memory so that I can run it better in my low spec pc, so far I've found the following questions in the website StackOverflow:
***android-studio-is-very-slow***
and
***android-studio-takes-too-much-memory***
In those question people suggested to low the memory value in the `Xmx` attribute from `750m` to `256m` in the studio.exe vmoptions file the folder `/Applications/Android\ Studio.app/Contents/bin/studio.vmoptions` I looked in the offcial documentation here: and there it says that is not recomended to edit those files, they advice to create a custom file, but I don't know how to do this.
Questions:
1) Should I create a whatever.exe vmoptions file in that folder with the change? and what should I do with the original file? and how android studio would know to read from my custom file instead of the original file.
2) In the official documentation says that edit that file but it says that that file is in this path `%USERPROFILE%\.{FOLDER_NAME}\studio.exe.vmoptions and/or %USERPROFILE%\.{FOLDER_NAME}\studio64.exe.vmoptions` but I can't find the file in that path, instead i founded in this path `/Applications/Android\ Studio.app/Contents/bin/studio.vmoptions`.
What I did before asking:
Before asking i tried to edit this file `/Applications/Android\ Studio.app/Contents/bin/studio.vmoptions` but it says that this file is already opened by another program or that it can't be saved.
I did this with android studio closed and I pretty sure that this file it's not opened by another program.

Categories

Resources