I've downloaded Android Studio from the official website, the one for M1 chip (arm).
Basically running it for the first time, the error is the following:
An error occurred while trying to compute required packages
I was searching about it the whole day to figure out a way to make Android Studio work, but that error keeps showing. Not completely sure if it's related to M1 Macbook, as on my Intel one it works as expected.
What I already tried to do:
Installing the command line tools, then placing it on SDK folder (Users/user/Library/Android/sdk). Then added the bin to the PATH (Reference)
After doing that, when executing the sdkmanager on terminal I get the following message Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
Then I searched again and it leaded me to this thread, then as on the answers I tried to rename the folder, then other tries not related. I fell into many links and references that did not work at all.
After that I try to check what happens if I click on New Project, then the following is shown:
The Android SDK location cannot be at the filesystem root
As the message indicates, the issue is The Android SDK location cannot be at the filesystem root, so I searched again about it
I looked into that and got to a few links, for example this one and this one. Before doing that search I clicked on the Edit button, which lead me to the Android SDK to be updated/installed (Nice!), so I had to delete the content I had on Android folder (inside Library) and clicked next...then, I got the same message An error occurred while trying to compute required packages.
Then I thought "ok, maybe if I change the SDK location", so I changed to ../Documents/sdk, which ended up in the same result
Seems like no matter what I do, it ends up showing up that same message.
When I run java -version that's what I see:
java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)
Did anyone have the same issue? Am I doing something wrong? Not sure how to proceed from here, despite of the Android Studio version I download it's always the same result.
Any help is appreciated.
This is what solved it for me on my M1.
Go to Android Studio Preview and download the latest Canary build for Apple chip (Chipmunk). Don't worry this is just to get through the initial setup.
Unpack it, run it, let it install all the SDK components, accept licenses, etc as usual.
Once it's done, simply close it and delete it.
Now when you start your stable Android Studio (Arctic Fox) you should not see the error.
I tried over a dozen 2021 stable and Canary builds from https://developer.android.com/studio/archive and couldn't get any of them to work.
This is the only thing I could find that worked:
Download, unpackage and run Android Studio 3.6.3 android-studio-ide-192.6392135-mac.zip from here.
Proceed through the initial setup and let it download and install the SDK. Ignore any errors at the end.
Delete this version and open the stable Android Studio like normal.
You can now proceed through setup!
I also faced this issue a couple days and I changed my mind to not use Android Studio. And It's fixed!
My alternative option is to download IntelliJ community edition and install Android SDK to your machine.
Image for IntelliJ Download Page
After (IntelliJ) installation is complete,
You need also to create new project, select android then download SDK. (thanks for #SteveRoger 's comment)
then open Android Studio again and follow its setup wizard. It will show that my machine has been already installed Android SDK and it can run perfectly at this time.
Hope this is an alternative solution for you.
Have a great day.
I solved the problem with these steps:
Install the old Android Studio 3.6.3 (find the old Android Studio at https://developer.android.com/studio/archive)
Install the Android SDK
Overwrite the installation with the Apple Chip version of Android Studio
I had the same problem with my MacBook air(m1 chip) as you mentioned.
How did I solve it?
Just download the IDE - Intellij IDEA and create a new project, select Android Project and there download Android SDK, now you can install android studio again and the sdk is installed.
I've also had this exact same issue when downloading Android Studio 7.0.3. Here's what helped me.
Download the command line tools, place them in the SDK folder (e.g., on mac: /Users/user/Library/Android/sdk), and then add the bin folder to the PATH.
Install the latest platform: in a terminal, execute ./sdkmanager "platforms;android-31"
Next up execute this command ./sdkmanager --channel=3 emulator (this switches the channel from stable=0 to canary=3 )
Open Android Studio, and go to the SDK Manager (Appearance and Behavior > System Settings > Android SDK)
Click on "Edit", and then select the sdk folder. Then "Next" > "Next" > "Finish".
Now restart Android Studio and everything should work
I had the exact same error as OP. Follow what Art Fedorychak mentioned, it worked for me as well. It seems like the current stable build of the Apple M1 android studio version doesn't actually initialize an SDK if one doesn't already exist, but it seems to be able to update and or / initialize one that does as long as the same folder is being referenced, so we just need to use a working SDK for M1 on the initial run and then revert back to the stable AS
This is what solved it for me:
Download & install IntelliJ IDEA. https://www.jetbrains.com/idea/download/#section=mac
Open IntelliJ IDEA and create New Android Project
Download sdk success
Open Android Studio & checked it worked
My solution to this problem is simply to put the SDK in another location. For myself, I put the SDK folder to subfolders in Documents. The SDK download will initiate.
I have implemented an android project and want to integrate subversion into Android Studio but in setting of subversion I'm not getting the option of "Use command line client" and getting this below error :
Can't use Subversion command line client: svn The path to the Subversion executable is probably wrong
Is there any solution to solve these issue? Please help me out How do I fix it.
Make sure you installed SVN. Note that a pure TortoiseSVN doesn't have SVN command line installed by default. Then
Add the directory which can be used to find svn executable into environment variable PATH
or
Specify the absolute path of svn executable in your Android Studio settings.
I've used Eclipse and the Subclipse plugin to program for Android. Now I've switched to Android Studio, but for me this Subversion stuff in Android Studio is a pain in the ass.
Perhaps I am doing something wrong, but when projects are checked out on different machines the gradle project settings are overwritten. Settings in 'local.properties', '.idea/gradle.xml' and '.idea/workspace.xml'. Maybe others too.
This means checking out an Android Studio project from a different machine gives me a project with lots of errors.
I guess this is not how it's supposed to work.
Am I doing something basically wrong with Android Studio and Subversion?
Can anybody outline the steps to work with Android Studio and Subversion correctly?
So I'm guessing everyone have heard about or seen the new Android Studio. If not you can find it here, it's wonderful!
The only thing I cannot figure out is how to install CVS on it? I know it's using the IntelliJ IDE but it's not exactly the same as the original. I have tried examples on how to install CVS for IntelliJ but they reference buttons and links in the IDE that does not exist for Android Studio. I installed GIT with ease, only struggling with CVS.
EDIT
I tried installing this plugin via File/Settings/Plugins/Install Plugin From Disk but after restart the IDE does not start up anymore and I have to manually delete the plugin from ...\.AndroidStudioPreview\config\plugins for the IDE to start up again. The error says that the plugin is already installed but I cannot access it from the IDE. Anyone know of another plugin I can use?
I don't know but if you get the plugin from JetBrains website and then load Android Studio and on the main page (when no project open) select configure > plugins and then install plugin from disk.
Hope this helps
No need to install cvs plugin with android studio. Its already inbuilt with android studio IDE. Here is the path:
Find VCS on toolbar of android studio.
VCS->checkout from version control->CVS.
Then you have to configure your cvs path for the first time.
I was working as an android developer. My development tools are Eclipse gelileo. i need help in accessing TFS server from my eclipse like svn . For that i googled and downloaded eclipse plugin .zip file of Teamprise plugin and installed into eclipse. but unfortunately that plug in is not working properly. so i need a working URL of teamprise plugin to download from net directly into my eclipse gelileo. i got this link(http://update.teamprise.com/plugin/3/) by googling but it is not working.
I am facing the following problem when trying to open Team Foundation Server Explorer perspective in eclipse.
Could not create the view: Plug-in com.microsoft.tfs.client.common.ui was unable to load class com.microsoft.tfs.client.common.ui.views.TeamExplorerView.
Can any one help me in this ?
Any help will be appreciated great.
Thanks,
Sathish.
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=4240
How to use this plugin:
Team Explorer Everywhere - A Plug-in to access TFS from Eclipse
you need java version 1.7 or 1.8
as example you can install java using SDKMAN