[Linux]How to install Android Studio (without pulling hair out)[Q] - Android Studio

Howdy folks,
Usually fairly computer-literate. Thought I'd do the "native" thing and develop for android using Linux. Windows 7-10 daily driver but i thought why not do the nerdy thing and use linux. that's the guts of android after all.
Anyhoo. If anyone's downloaded the linux version of android studio you'd notice it puts you right away into the android sdk manager to complete the installation and you have to choose to install platform-tools and the api. ok. done.
How now do I start this program?? There is not a corresponding .android bash script to run for the sdk itself, it's just the manager!! How do you start the IDE??
Please, many sorries that i am retarded. ... but it's baffling how there's no instructions from google... they just point you to the sdk manager and explain nothing else. They didn't even sign their ssl certs so you can't use sdk manager unless you dive into its settings to force http. wtf?? is google dropping the ball on this? how do you deploy something so terribly? and what's with the unsigned certs? did the intern fall asleep at his job??

bananapeal said:
How now do I start this program?? There is not a corresponding .android bash script to run for the sdk itself, it's just the manager!! How do you start the IDE??
Click to expand...
Click to collapse
So, I guess you have downloaded the studio from
Code:
developer.android.com/sdk/installing/index.html?pkg=studio
After extracting you can launch IDE by going to android-studio/bin/ and writing ./studio.sh
And this information is straight from their page.

thanks... i ... i saw later...
when you click on first link on thier page it takes you to download ide package manager... it implies you already have ide, so the actual program isnt available to dl.
but if you scroll that same silly page, you find true complete ide download.
please pardon my extreme ignorance. hope you got some lulz.

Deleted

Related

[Q] HELP ASAP!!!!!!!!About to Wipe Laptop...Help Setting Up for Development!

So far this is what I plan to do:
- Backup all Win7 Files to Linux Mint Parition
- Reboot and Re-Install Win7 on its partition
- Boot into Win7 and setup an user account
- Reboot into Linux Mint
- Move backed up files to Win7
- Reboot into Win7
- Go into Computer Management and Wipe Linux Mint Partition
- Resize the partitions
- Reboot into Ubuntu 10.04 DVD
- Install Ubuntu on free space
- Boot into Ubuntu for first time
- Set grub2 for windows 7 default OS
- Boot into Win7 and begin setup for android development:
Windows 7:
- Install android sdk by placing the extracted folder on the root of my C: drive
- then i'm going to launch the sdk.exe and install all the available packages (may take 30 minutes or so on my 6mb wifi connection)
- then after that i'm going to install java jdk 1.6
- then i'm going to create a new user variable in the enviroment variables that will have the path to C:\androidsdk\platform-tools;C:\Program Files\java\jdk1.6xx\bin and name it android
- then after that i'm going to install eclipse and set it up by changing the path to the location of androidsdk on my c drive
- i'm also going to download ppcgeeks apk signer.exe and install that for easy signatures
- then i'm going to download some other tools (HxD, notepad++, apk manager v4.8, etc.)
- once i upzip them to a directory probably C:\users\kifno\heroc\tools or install the .exe file i'm going to launch apk manager
- after that i'm going to try and decompile/compile apk files (which i should be able to after a fresh wipe)
so the whole point of this is to be able to decompile/compile apk files without errors
Ubuntu:
- download java jdk and install it through terminal
- then i'm going to download apk tool
- after wards i'm going to try and decompile apk files and recompile them
So my main question is, is anything i'm doing in the set up process going to prevent me from being able to use apktool via apktool itself or apk manager, for decompiling/compiling apk files? I want to make sure I'm not doing something wrong before I get back into setting my system up for developing and scripting and theming again (for themes all it takes is smali, photoshop, and androidsdk for me ...okay maybe a few other programs too along with my imagination )
Hopefully my setup for being able to use apktool isn't screwing anything up
Also I'll be using windows 7 64x ultimate and 32 bit java/eclipse ide for java developers/and all other things related to android development so that i won't run into any problmes hopefully
i just wanted to get your opinion on if my setup process (even though i barely wrote it all as to what i do) was correct
also if you have any suggestions on other android development tools i should use please do tell. you never know that may just help me do something great because of that small suggestion (for example i switched from notepadd to notepad++ because of someone and i haven't stopped using it since...this was back in my noob days XD)
I'm confused
If you're using Win7 for development (eclipse, theming, etc.) what are you using a linux partition for? What I mean by that is, why are you using it for apk tools, when you already have it on Win7. If you're only using linux for de/compiling apks, kinda seems like an inconvenience. But maybe I'm misunderstanding what you posted.
As for what you plan on doing, looks like it should be fine. You have the right idea about installing Win7 first and then ubuntu since the opposite would write over the MBR. And I'm assuming you know how to edit GRUB2 since you wrote you are going to change it, so that shouldn't be a problem either.
Edit2: Dont forget to do this after you change grub2 (assuming you have the sudo package installed and have run visudo to add users to the list - if you are logged in as root, you dont need to type sudo)
Code:
sudo update-grub
Most tool recommendations I can think of you already put down (HxD, np++, smali, apk manager 4.9)
Only others you might want are: AVABoxV2 and 7zip. along with using Monkey when you test applications (if you're developing)
Personally... I would dev on linux, but to each his own haha.
Edit: just noticed this. I was wondering which partitions specifically are you changing?
Sent from my Android using Tapatalk
kyouko said:
I'm confused
If you're using Win7 for development (eclipse, theming, etc.) what are you using a linux partition for? What I mean by that is, why are you using it for apk tools, when you already have it on Win7. If you're only using linux for de/compiling apks, kinda seems like an inconvenience. But maybe I'm misunderstanding what you posted.
As for what you plan on doing, looks like it should be fine. You have the right idea about installing Win7 first and then ubuntu since the opposite would write over the MBR. And I'm assuming you know how to edit GRUB2 since you wrote you are going to change it, so that shouldn't be a problem either.
Edit2: Dont forget to do this after you change grub2 (assuming you have the sudo package installed and have run visudo to add users to the list - if you are logged in as root, you dont need to type sudo)
Code:
sudo update-grub
Most tool recommendations I can think of you already put down (HxD, np++, smali, apk manager 4.9)
Only others you might want are: AVABoxV2 and 7zip. along with using Monkey when you test applications (if you're developing)
Personally... I would dev on linux, but to each his own haha.
Edit: just noticed this. I was wondering which partitions specifically are you changing?
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
I have those I just didn't list them but thanks for the re assurance And yeah I do dev on linux just I use windows 7 for themeing and linux for developing apps (which i'm learning how to do ) and for developing my roms. I'm on linux right now (YAY FOR UBUNTU )
Ahh gotcha
I agree theming on windows is the way to go.
If only I could get cs4 photoshop to work on Arch, or any linux for that matter
last time I tried it didn't work out too well haha
Sent from my Android using Tapatalk
same which is the only reason i theme on windows
wow..so deep man...

[Q] Problem starting SDK

Hi all,
I've just bought a Streak 7. So the first thing I meant to do is root it! So I downloaded SDK (more exactly the file installer_r15-windows.exe). When I start sdk manager.exe this message pops up:
"The AVD manager normally uses the user's profiledirectory to storeAVD files. However it failed to fine the default profile directory.
To fix this, please set the environment variable ANDROID_SDK_HOME to a valid pathsuch as %USERPROFILE%".
I set the ANDROID directory first under C:\USERS\USERPROFILE, then under C:\ but it's the same. I run windows seven pro 32bit. I also tried to install SDK in another pc which runs Ubuntu 11.10 but I'm a total newbie and I can't install file .tar. Ehm. But this is another movie.
Anyway is there anybody who helps me out there before I launh my brand new poor Streak as a frisbee'
Thank you in any case!
sure, I have sdk but dont use it much. but it definetly sounds like this variable needs to be added to your PATH. click your windows start button, right click computer and click properties. then click on advanced system settings, then you should see an enviornmental variables button on the bottom of this window. edit.. add. new.. system variable... ANDROID_SDK_HOME then set the path to C:\android\sdk\avdlocation. dont forget to restart computer anytime adding anything to system variable. something like this Is my best guess. if that doesnt work I can help to research it should be a fairly common issue.
It works! Thanks a lot!!

Ubuntu on a few weeks. Need tips.

So, I am planning to install Ubuntu to run it alongside Win 7. The PC is broken now, but will be fixed in about 2 weeks. I have some questions about it, will have a lot of other when I install it, and will need tips and tricks for it.
So, I have a 1TB HD that, have 2 partitions: a 800 Gb for almot everything, and a 200 Gb partition that have most of my family personal files (music, videos, documents, photos and some other random files).
So, first question is: I want to partition my 1 TB HD so I have a good space for Windows (and programs), a good space for Ubuntu and the rest for files. How I should partition it? I can make a backup of everything, except Windows itself, but if I can keep everything on it's place, the better it is.
Second, how dual boot works exactly? After the PC boots, it will ask which OS I want or it will boot with a default OS and I have to do something to boot on the other one?
Third, as I Android phone owner, I need to set up everything for do Android things (ADB and related), PC Companion and Sony Update Service (Sony Mobile things). What I should do?
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Fifth, I saw there a lot of themes for it. How they work for a user? There is someway to quickly switch between them or something like that?
Sixth, coming from a 15 years experience with Windows, and 1 year from Android, I will get easily lot on it?
I think it's everything by now. As I said, when I install it, I will have a lot more of thing I don't know, so I come here again.
Thanks in advance, Felipe
I'm in a similar situation. ~15 years on Windows, power user / basically a MCSE without the certification. I've dabbled w/ linux over the years but never made the transition. I decided I wanted to dual boot vista and ubuntu. So far, it's going pretty smoothly. At first, it was difficult to configure things the way I like, but here's what I've done:
Although I liked Unity fine, I run Cinnamon instead of Unity. It's a bit more windows-like without being KDE (which I didn't care for). I installed a few tools, one is called Tweak, and the other is called Compiz Config Manager. These let you modify things a bit easier.
---------- Post added at 02:15 AM ---------- Previous post was at 02:06 AM ----------
I suppose I should have tried to answer a few of your specific questions, too.
Felimenta97 said:
How I should partition it?
Click to expand...
Click to collapse
I'm sure some expert will chime in too, but for me, just to explore Ubuntu, I installed it from inside of Windows. (So windows is "host", whatever that means). My Ubuntu boot can see all my windows files. I think I allocated about 20-30 gigs of HDD space for Ubuntu.
Felimenta97 said:
Second, how dual boot works exactly?
Click to expand...
Click to collapse
After the BIOS screen, you get a screen that lets you select which OS to boot to, Windows or Ubuntu. You can probably set the default for after timeout.
Felimenta97 said:
What I should do?
Click to expand...
Click to collapse
I don't really do any android dev so I didn't install the SDK yet. The other stuff, presuming those programs have a linux counterpart, you should be okay. Just google how to install in ubuntu from source.
Felimenta97 said:
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Click to expand...
Click to collapse
There is a ubuntu software center now that is similar to the Android Market, makes it pretty easy. You can also use the command apt-get install to install things from the command line. (generally you can google for it, like google for "apt-get install google music manager" and someone will have posted the answer in a forum. Be prepared to do a lot of this kind of discovery to get yourself up and running.
Felimenta97 said:
Fifth, I saw there a lot of themes for it. How they work for a user? There is someway to quickly switch between them or something like that?
Click to expand...
Click to collapse
Your desktop manager (I use Cinnamon) will probably have different themes available. I haven't messed with that too much, but those two programs I mentioned previously will help you customize the visual experience.
Felimenta97 said:
Sixth, coming from a 15 years experience with Windows, and 1 year from Android, I will get easily lot on it?
Click to expand...
Click to collapse
If you're willing to put the effort in at the beginning, it's not that hard. Google is your friend.
---------- Post added at 02:22 AM ---------- Previous post was at 02:15 AM ----------
Oh, I also found the #ubuntu-beginners IRC room on freenode to be helpful, but sometimes you have to ask your question and wait around a while before anyone is there to answer.
Just use wubi (windows ubuntu installer)
it partions and sets up dual boot perfectly. But one suggestion, I think you should wait for the Ubuntu 12.04 release to be finished. It is currently in a final beta but it will release later this month
Link to wubi : http://www.ubuntu.com/download/ubuntu/windows-installer
Sent from my Kindle Fire using Tapatalk
shravbits said:
Just use wubi (windows ubuntu installer)
Click to expand...
Click to collapse
Yes, that was the name of the thing I used,wubi. Very straightforward.
As for waiting for the new Ubuntu... too late for me, but might be a good idea if the release date is in the near future.
Oh, and another thing: How updates works?
Felimenta97 said:
Oh, and another thing: How updates works?
Click to expand...
Click to collapse
There is an update manager that seems to run in the background, it pops up for me from time to time when some software needs to be updated.
You can also do apt-get update. Google for this: "The Debian GNU/Linux FAQ
Chapter 9 - Keeping your Debian system up-to-date" That will take you to a good info page about it.
kindlezeb said:
There is an update manager that seems to run in the background, it pops up for me from time to time when some software needs to be updated.
You can also do apt-get update. Google for this: "The Debian GNU/Linux FAQ
Chapter 9 - Keeping your Debian system up-to-date" That will take you to a good info page about it.
Click to expand...
Click to collapse
No. I mean, on a big update (11.10 to 12.04), it's like a Windows Update Service, that may require a reboot, but will keep the system there?
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Click to expand...
Click to collapse
You have several ways of doing this.
1. You can go to the Software Center. That's like the Market/Play Store on your Android device. Search or find what you want and click install. You will not find everything since Ubuntu/Linux depends on sources. The Software Center does have the Ubuntu source and that's about it. You can add more if you want to.
2. You can use the Terminal.
"Sudo apt-get install (enter package name here)", so if you want to install Opera (which will already be in the Ubuntu app source i believe) then type "sudo apt-get install opera". That's it.
If you want to remove it (or another app) then type "sudo apt-get purge opera", and if you want to remove all of the app content then you type "sudo apt-get autoremove opera" (after purge). You can also do this with one command, and that would look something like this: "sudo apt-get purge opera -y && sudo apt-get autoremove opera -y".
3. You can use Synaptics (not installed by default anymore). With Synaptics you'll get a list and a more advanced approch to app installations. You can sort by date, size, versions, packages that's missing, broken packages and many more.
I will personally recommend you using the Software Center for app installation, but the terminal is really great to do things fast. But it takes some learning so just start by remembering some easy commands like how to install and remove apps.
I would answer your questions, but I have to get up early in the morning. For now, see this. http://www.psychocats.net/ubuntu/ I will try to help you tomorrow.

Need Help fixing many errors in Android Studio

Hi
So I want to learn how to make Android apps in Android Atudio with Udacity's Android Fundamentals course. I have no knowledge or experience in app-development and very very veeeeerry basic programming knowledge. The problem is though that there are many error messages everywhere and I already searched on the internet a few times but have newer gotten a working answer to the problems I'm having. So I thought i could ask the people at the xda-forum for help
I am going to post the problems one after another (posting the next problem after the one before is fixed), because maybe with one answer multiple problems get fixed.
Also I completely reinstalled Android Studio just to be sure I didn't create any more problems myself.
The first problem is that there is an error message saying:
failed to find Build Tools revision and then the Version specified in the build.gradle
I know that I need to change the SDK versions in the build.gradle file but I cant find where you can look up the Build Tools Version currently installed. By the way I want to compile for android Marshmallow hoping that it also works for Android Lollipop if that helps in any way
I am thanking in advance to everyone trying to help me
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
ChahatGupta said:
Hey!
I'm also a new learner to android app development
Just wanted to know if the udacity tutorial videos are helpful?
Do they explain well?
Click to expand...
Click to collapse
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
DasMaennel said:
I did't really come that Far in the Tutorial (because of obvios reasons) but I Can say they are really good. Easy to understand and straight forward.
Click to expand...
Click to collapse
Thanks
I followed a lot tutorials but none of them worked out
Will try this one
Did you check on the Sdk manager whether you have the needed build tools installed?
I don't comprehend what the correct name is for s highlight this way, yet I will simply depict it.
I am utilizing android studio and I included some java classes from an alternate venture. Presently it says
"missing bundle articulation: whatever". Be that as it may, there is not alternative in the mistake popup to simply naturally include the missing bundle articulation. I know it appears to be lethargic to not sort it, but rather I get a kick out of the chance to do things rapidly.
At the point when there is a mistake this way, is there a route for android studio to naturally included the required lines of code like obscuration would?
For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:
change "Insert imports on paste" dropdown value to "All"
check "Add unambiguous imports on the fly" option
On a Mac, do the same thing in Android Studio -> Preferences
That way, as you type, or when you copy and paste, many imports will be added automatically. Those that aren't are ambiguous; put the cursor on the class, press alt+enter and select which version of the class you meant.

Cannot build after upgrading from 1.0 to 3.3

I have upgraded from Android Studio 1.0 to 3.3.
I was building and rebuilding and flashing my software to phone very effectively on 1.0 and now after upgrade after nearly two days of work I can still not get the basics (build Android app as far as java compile errors) working.
I appologise if my questions are not perfectly formed, I am beginning to get really tired and confused and I would be so grateful of a little latitude and some help to get back to where I was.
When I installed 3.3 it recommended that it uninstall the current version, which I agreed to it doing. So fresh start I guess.
Amongst other things...
After the install, my app would not build and kept asking for a newer version of gradle. I set in settings local gradle 4.10.1 and I set the gradle plug-in to 3.3.0 in the top level gradle file. I tried setting "use default gradle wrapper" and then setting these versions in "project structure" but they kept changing back again, so I used the other method just described. It then complained it couldn't find that plugin so I added repositories google and jcentre to that file. It then began to build but complained that a version of build tools could not be installed because the license had not been accepted. I clicked on the link provided and accepted the license, but the build tools would not install, no reason.
I could not find "sdk manager" menu item anywhere in AS menu structure. Don't know why. It used to be there in 1.0.
Thinking it's a brand new install as it said I go to OS start->all programs->Android sdk tools and launch sdk manager as administrator. I install the offending build tools version accepting the license.
I rebuild, same error.
I look where that sdk manager exe was and there is no license folder in that folder nor the one above.
I root around the folder structure and find a different sdk manager under prog files (x86)\Android\android-studio\sdk and a license folder in the folder above. I run that sdk manager and install the offending build tools version accepting the license.
I go back to Android studio and click rebuild project, nothing I mean literally nothing happens, clean, nothing, make, nothing! Nothing at all! I close AS and restart it (as administrator), exact same issue. This new issue really gives me very little to work with as there is no feed back at all. I'm beginning to regret upgrading AS as it is holding me back from coding now.
I have two questions:
1) Can anyone see a possible way out of my immediate problem and how to get my project at least attempting to build again and get at least as far as just compile errors.
2) Am I right in thinking that current version of AS is far from an out of the box experience even for the common default activities (build Android java project) and has a variety of unexpected anomolies OR a lot of settings whose defaults may very likely not be useful and need manually resetting? IF SO... Is it therefore recommended I do a couple of days reading maybe about the structure of "specifically" AS and it's dependant components and how to set them up and use them effectively? IF SO... what documents would one recommend, so as to make the most efficient use of time.
Apologies if this is not well formed. Hoping for some help.
Thanks.
@hardya
I have AS installed on linux so I can't help you much with windows. I can tell you that AS 3.3 works great and is much better than 1.0. Mind you, I've been using AS since it was in beta.
Try to create a new project. If the new project is created and builds without error, then you know AS is working correctly.
If the above doesn't work then I recommend you do a full uninstall of AS and then do a fresh install as follows.
Follow this AS uninstall guide:
https://stackoverflow.com/a/39953746
Then follow this guide to install AS:
https://developer.android.com/studio/install
Then try a new project as mentioned above. If the new project goes well, then you can proceed to import the project you was working on originally.
Thank you. I think there are possibly issues with this upgrade path. It was supposed to have uninstalled completely (said it was doing so) and installed 3.3 afresh. However when you open "AS" itself it opens with the existing project in place. It is not until you close that project that it suddenly closes AS, reopens AS and enters the first startup wizard to complete the remainder of the installation / configuration.
I think I am a step further on since then.
Thanks

Categories

Resources