如何将Android Studio Project导入Eclipse?

时间:2015-03-22 20:21:01

标签: java android eclipse android-emulator

尝试将此项目导入Eclipse时:

https://github.com/saulmm/Android-Material-Examples

我收到很多错误。

我已将android-support-v7和cardview添加为库。

我收到了这些错误。

03-22 16:14:42.828: E/AndroidRuntime(29955): FATAL EXCEPTION: main
03-22 16:14:42.828: E/AndroidRuntime(29955): Process: com.saulmm.material, PID: 29955
03-22 16:14:42.828: E/AndroidRuntime(29955): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.saulmm.material/com.saulmm.material.activities.TransitionFirstActivity}: java.lang.ClassNotFoundException: Didn't find class "com.saulmm.material.activities.TransitionFirstActivity" on path: DexPathList[[zip file "/data/app/com.saulmm.material-7.apk"],nativeLibraryDirectories=[/data/app-lib/com.saulmm.material-7, /vendor/lib, /system/lib]]
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2453)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread.access$900(ActivityThread.java:173)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.os.Handler.dispatchMessage(Handler.java:102)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.os.Looper.loop(Looper.java:136)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread.main(ActivityThread.java:5579)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at java.lang.reflect.Method.invokeNative(Native Method)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at java.lang.reflect.Method.invoke(Method.java:515)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at dalvik.system.NativeStart.main(Native Method)
03-22 16:14:42.828: E/AndroidRuntime(29955): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.saulmm.material.activities.TransitionFirstActivity" on path: DexPathList[[zip file "/data/app/com.saulmm.material-7.apk"],nativeLibraryDirectories=[/data/app-lib/com.saulmm.material-7, /vendor/lib, /system/lib]]
03-22 16:14:42.828: E/AndroidRuntime(29955):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
03-22 16:14:42.828: E/AndroidRuntime(29955):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2289)
03-22 16:14:42.828: E/AndroidRuntime(29955):    ... 11 more

0 个答案:

没有答案