[已解决]mac android studio安装报错java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument

时间:2021-07-19 16:52:15

mac android studio 安装报错

Internal error. Please report to https://code.google.com/p/android/issues

java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform.<init> must not be null

[已解决]mac android studio安装报错java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument

解决办法:

0: 打开命令行,切换到android studio的目录

cd /Applications/Android\ Studio.app/Contents/bin


1: 备份idea.properties cp idea.properties idea.properties.bak
[已解决]mac android studio安装报错java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument

2: vim idea.properties
在最后一行添加


disable.android.first.run=true

[已解决]mac android studio安装报错java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument

然后保存退出,


3:重新打开android studio