Android Studio 2.3 - Cannot lock System Folders - android

I'm new to Android App Development and am using Android Studio 2.3 to learn it. I've been working on it for a week now but now I'm getting the following error:
port lock error
Currently I'm working on a project so I need this error to be resolved.
Please help.

its problem with androidstudio.exe download from here its official site to download studio.
if any query after install new studio ask me.

try this my friend
Go to folder where android-studio is installed. (e.g. C:\Program Files (x86)\Android\android-studio)
Now go one folder back. (i.e. C:\Program Files (x86)\Android)
Right click on the android-studio folder and click to Properties.
Once in the Properties window, go to the Security tab.
Click the Edit button
In the new window that opens up click the Users (your-username-or-your-group-name)
From the list below, check Allow in front of Full control.
Press OK, then again OK.
I hope it help you!
for more information follow this link

Related

Having trouble setting up Unity 5 with android sdk on mac

I'm trying to create a mobile game for android through unity and running into some difficulties.
When watching tutorials and googling this is what is shown is that it is navigated to through the Preferences > External Tools. But there is no option there for me.
Here is a comparison side by side of how guides say it should look vs how it looks for me.
Any help is appreciated!
Mac unity android sdk path setting
If you have Android Studio installed.
The path for SDK is “/Users/username/Library/Android/sdk”.
But sometimes the “Library” folder is hidden.
To see the hidden files, follow the link: http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
Or follow the steps below
* Open Terminal found in Finder > Applications > Utilities
* In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES
* Press return
* Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.
Once you done this. Open unity->Unity->Preferences->External tools
In that find SDK path option, click browse, then drag the “sdk” folder which you just opened above in Finder…
Done…
If its still giving error then consider below case:
Sometimes Unity won’t recognise Android Studio’s sdk tools and gives error and ask you to again set the path.
To solve this, download separate sdk tools from Google.
Link : https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
Once you download the “tools” folder.
Then copy it and replace it in “/Users/username/Library/Android/sdk”.
And try again…
I know this is not written well…but if you are struggling a lot ..if will just give you an correct hint. I struggled a lot for this issue…so wanted to help you all.
Thank you…
I do not know how it looks on Mac, but on Windows you should opt-in Android Build Support when you installing Unity.

eclipse not finding path for sdk on linux ubuntu

I've installed eclipse and sdk onto linux ubuntu successfully. I can write codes in eclipse fine. However, when trying to use sdk with eclipse its not finding the path. For instance: opening up clipse then help then install new software and since I have no Internet connection at home I go to add then local and find android sdk in here: /home/myusername/Downloads/android-sdk-linux I click on it and it puts that path into the empty bar. I click add or o.k and a message pops up "can't find file:/home/myusername/Downloads/android-sdk-linux why is eclipse not finding sdk? Can someone help please.
Thanks
Nick
Go to Window>preferences> select Android from left Panel> paste your SDK directory click apply and then OK.

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

How to create a new PhoneGap Android project in Eclipse "Juno" on Mac?

I recently reinstalled my OS, and used to have a PhoneGap / Android project. Now I want to use it again, so I reinstalled Eclipse and the ADT plug in. So far so good. Now the instructions say:
"Choose New > Android Project"
However, Android Project doesn't show up under new projects, like it used to.
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
I downloaded phonegap-2.6.0, but perhaps it isn't connected to Eclipse... what do I do at this stage to get Android Project to show up?
If there is no 'Android Project' under the menu it is not about PhoneGap it is maybe about ADT, are you sure you installed it correctly ?
And, also you can create Android Project with PhoneGap by using 'command line', then you just go to the same menu:" New > Project " then choose Android Project with existing source choose the path you created before by command line and that's it.
edit1: Make sure you locate true directory for 'android-sdk-mac_x86'
edit2:this is how you create Android project by using Terminal
/path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
I had a similar problem. For me, Eclipse wouldn't respond when I clicked Finish when importing source from a phonegap project.
I later found that I had mentioned an incorrect path to the android-sdk.
Check if that is your problem.
If it is, here is how you change it:
In Eclipse IDE, click on the Window menu and then Preferences.
A pop-up will be opened.
On the left pane, click on Android (click on it, not on the + sign beside it).
In the field SDK Location, click Browse and point to the location of your android-sdk.
You are done!
Hope that helped.
EDIT:
I am using Eclipse Juno, but the options must hopefully be pretty much the same for other versions too. Please comment if this is incorrect.

Not able to create Android Project in Eclipse

I'm not able to create a new android project in eclipse.
Whenever I try to create one & reach last screen of the wizard & hit finish button, a empty project (just folder structure) project with the same name gets created in navigator window but the wizard does not go away.
It still has that finish button & nothing happens on clicking it again.
The project created in navigator should have at-least few files for me to start working on it.
Any help?
I'm using eclipse indigo on ubuntu 12.04
try to Use Following Suggestion i'm Not Sure But Might Help you.
1 ) Just go with default launcher image (blue smiley) instead of customizing it and it should work.
2) If you have installed support library>8 Still get the error msg
-->Delete the support library from the SDK manager
-->Create a new project & install the support library by clicking on "Install / Upgrade"
also Check this answer for More Information.
Hope it will Some How Help you.
This might happen due to improper instalation..Can you specify what the message/error, it showing when you click finish on your project creation..?
else try to install eclipse again in someother location..
Installation steps-click here
Fwiw, I had this problem and I ended up reinstalling eclipse and the sdk, but I instead of installing them separately, I installed bundle:
http://developer.android.com/sdk/installing/bundle.html
and I don't get have this problem anymore.

Categories

Resources