我正在尝试启动android studio。我已经在我的计算机中安装了jdk7
,但是当我启动android studio时,它会显示以下错误消息:
内部错误。请报告给 https://code.google.com/p/android/issues
java.lang.RuntimeException:java.lang.IllegalArgumentException: @NotNull参数'name'的参数 COM /安卓/工具/主意/首页/平台。不能为空 在com.intellij.idea.IdeaApplication.run(IdeaApplication.java:178) 在com.intellij.idea.MainImpl $ 1 $ 1 $ 1.run(MainImpl.java:52) 在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) 在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)引起:java.lang.IllegalArgumentException:@NotNull的参数 com / android / tools / idea / welcome / Platform的参数'name'。 不能为空 在com.android.tools.idea.welcome.Platform。(Platform.java) 在com.android.tools.idea.welcome.Platform.getLatestPlatform(Platform.java:72) 在com.android.tools.idea.welcome.Platform.createSubtree(Platform.java:89) 在com.android.tools.idea.welcome.InstallComponentsPath.createComponentTree(InstallComponentsPath.java:81) 在com.android.tools.idea.welcome.InstallComponentsPath.init(InstallComponentsPath.java:215) 在com.android.tools.idea.wizard.DynamicWizardPath.attachToWizard(DynamicWizardPath.java:97) 在com.android.tools.idea.wizard.DynamicWizard.addPath(DynamicWizard.java:233) 在com.android.tools.idea.welcome.FirstRunWizard.init(FirstRunWizard.java:75) 在com.android.tools.idea.welcome.FirstRunWizardHost.setupWizard(FirstRunWizardHost.java:100) 在com.android.tools.idea.welcome.FirstRunWizardHost.getWelcomePanel(FirstRunWizardHost.java:92) 在com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame。(WelcomeFrame.java:68) 在com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(WelcomeFrame.java:173) 在com.intellij.idea.IdeaApplication $ IdeStarter.main(IdeaApplication.java:302) 在com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)
答案 0 :(得分:3)
var images = [
"http://dummyimage.com/100x100/100/fff",
"http://dummyimage.com/100x100/304/fff",
"http://dummyimage.com/100x100/508/fff",
"http://dummyimage.com/100x100/70B/fff",
"http://dummyimage.com/100x100/90F/fff",
"http://dummyimage.com/100x100/AA0/fff",
"http://dummyimage.com/100x100/CB0/fff",
"http://dummyimage.com/100x100/EC0/fff"
];
//A function to shuffle the images
function shuffle(o) {
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
}
//Get a reference to the divs
var $divs = $(".images_wrapper > div");
//A self executing function
(function randomBackground() {
//Make an array of length = $divs.length, which is nothing but $divs.length random images form the images array;
var randomImages = shuffle(images).slice(0, $divs.length);
//Cycle thru the divs
var done;
$divs.animate({
opacity: .2
},{
start: function() {
done = 0;
},
progress: function(p, n1, n2) {
console.log(n1)
if (!done && n1 > .7) {
$divs.each(function(idx) {
//Set the background
$(this).css({
'background-image': 'url(' + randomImages[idx] + ')'
});
});
done = 1;
}
},
complete: function() {
$divs.animate({
opacity: 1
}, 400, function() {
});
}
});
//Repeat the function
setTimeout(randomBackground, 3000);
}());
。bin
并使用Notepad ++ / UltraEdit /其他纯文本编辑软件打开它。idea.properties
作为最后一行并保存文件。