我已经从官方网站下载了Android,这是一个用于M1芯片的网站。
基本上,第一次运行它时,错误如下:
An error occurred while trying to compute required packages
我一整天都在搜索它,想出一种让Android工作的方法,但是这个错误一直在显现。不完全确定它是否与M1 Macbook有关,就像我的英特尔Macbook一样,它的工作原理与预期一样。
我已经尝试过的是:
bin
添加到路径(参考文献)中。- 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](https://stackoverflow.com/questions/60727326/sdkmanager-error-could-not-find-or-load-main-class-com-android-sdklib-tool-sdk), 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.
New Project
会发生什么,然后显示以下内容:Android的位置不能位于文件系统根目录。
The Android SDK location cannot be at the filesystem root
,所以我再次搜索了它,不管我做什么,结果都是同样的信息。
当我运行java -version时,我看到的是:
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)
有人也有同样的问题吗?我做错了什么吗?不知道如何从这里开始,尽管我下载了Android版本,但结果总是一样的。
任何帮助都是非常感谢的。
发布于 2021-11-09 02:30:23
我尝试了十几个2021年的稳定和金丝雀的https://developer.android.com/studio/archive构建,但没有任何一个工作。
这是我唯一能找到的有用的东西:
https://stackoverflow.com/questions/69869181
复制相似问题