java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNull parameter ‘nam

简介: java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNull parameter ‘nam

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

at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178)

at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)

at java.awt.EventQueue.access$300(EventQueue.java:103)

at java.awt.EventQueue$3.run(EventQueue.java:706)

at java.awt.EventQueue$3.run(EventQueue.java:704)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

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

at com.android.tools.idea.welcome.Platform.(Platform.java)

at com.android.tools.idea.welcome.Platform.getLatestPlatform(Platform.java:72)

at com.android.tools.idea.welcome.Platform.createSubtree(Platform.java:89)

at com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:81)

at com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215)

at com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97)

at com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233)

at com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75)

at com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100)

at com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92)

at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.(WelcomeFrame.java:68)

at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173)

at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:302)

at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)

解决办法:

在studio的安装目录下 /bin中修改idea.properties,用记事本打开 在最后一行添加

disable.android.first.run=true

保存后重新启动就解决了.

如果在修改的时候,提示拒绝访问,查看一下idea.properties文件的属性,查看权限是否存在,

点击到安全选项卡,查看当前user是否具有对idea.properties文件的读写控制权限,选中即可更改,然后重启android stdio即可解决,重启之后,重新设置正确的android sdk路径

相关文章
|
Java Spring
【Java用法】Spring之@Nullable和@NotNull注释的使用
【Java用法】Spring之@Nullable和@NotNull注释的使用
286 0
|
Java 应用服务中间件
线上临时文件夹报错Failed to parse multipart servlet request; nested exception is java.lang.RuntimeException: java.nio.file.NoSuchFileException
Failed to parse multipart servlet request; nested exception is java.lang.RuntimeException: java.nio.file.NoSuchFileException、tmp、配置文件指定目录
213 0
|
6月前
Caused by: java.lang.RuntimeException: java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ
Caused by: java.lang.RuntimeException: java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ
43 0
|
6月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
130 1
|
Java
【Java用法】@NotEmpty、@NotBlank、@NotNull注解的使用方法与区别
【Java用法】@NotEmpty、@NotBlank、@NotNull注解的使用方法与区别
457 0
Maven: java.lang.NullPointerException: inStream parameter is null
Maven: java.lang.NullPointerException: inStream parameter is null
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
java.sql.SQLException: Parameter index out of range (6 >
java.sql.SQLException: Parameter index out of range (6 >
154 0
|
SQL HIVE
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: The root scratch
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: The root scratch
219 0
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: The root scratch
|
SQL 分布式计算 Hadoop
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: Unable to instant
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: Unable to instant
1327 0
Exception in thread “main“ java.lang.RuntimeException: java.lang.RuntimeException: Unable to instant