java - android hello world in idea on mac (AndroidDxRunner) -
have following error, when build hello world android app in idea
using javac 1.7.0_45 compile java sources compilation completed 9 errors , 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] @ java.net.urlclassloader$1.run(urlclassloader.java:366) android dex: [gpuinfo] @ java.net.urlclassloader$1.run(urlclassloader.java:355) android dex: [gpuinfo] @ java.security.accesscontroller.doprivileged(native method) android dex: [gpuinfo] @ java.net.urlclassloader.findclass(urlclassloader.java:354) android dex: [gpuinfo] @ java.lang.classloader.loadclass(classloader.java:425) android dex: [gpuinfo] @ java.lang.classloader.loadclass(classloader.java:358) android dex: [gpuinfo] @ com.intellij.rt.execution.commandlinewrapper.main(commandlinewrapper.java:115)
didn't find solution yet, can help?
code:
package com.example.untitled; import android.app.activity; import android.os.bundle; public class myactivity extends activity { /** * called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); } }
Comments
Post a Comment