android上的android hello world(AndroidDxRunner)

时间:2014-01-31 19:46:12

标签: java android intellij-idea

在想法

中构建Hello World安卓应用时出现以下错误
Using javac 1.7.0_45 to compile java sources
Compilation completed with 9 errors and 4 warnings in 3 sec
Android Dex: [GPUInfo] Exception in thread "main"
Android Dex: [GPUInfo] java.lang.ClassNotFoundException: org.jetbrains.android.compiler.tools.AndroidDxRunner
Android Dex: [GPUInfo] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Android Dex: [GPUInfo] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Android Dex: [GPUInfo] at java.security.AccessController.doPrivileged(Native Method)
Android Dex: [GPUInfo] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Android Dex: [GPUInfo] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
Android Dex: [GPUInfo] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Android Dex: [GPUInfo] at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:115)

还没有找到任何解决方案,有人可以帮忙吗?

代码:

package com.example.untitled;

import android.app.Activity;
import android.os.Bundle;

public class MyActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

0 个答案:

没有答案