开发者社区> 问答> 正文

高手在哪里呀,高手在哪里!! 项目mac迁移到win8系统下启动报错?报错

FATAL EXCEPTION: main
Process: com.ok619.jyqb, PID: 12225
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ok619.jyqb/com.ok619.jyqb.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.ok619.jyqb.MainActivity" on path: DexPathList[[zip file "/data/app/com.ok619.jyqb-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.ok619.jyqb-1, /vendor/lib, /system/lib]]
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2116)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2239)
  at android.app.ActivityThread.access$800(ActivityThread.java:141)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5047)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:807)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
  at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ok619.jyqb.MainActivity" on path: DexPathList[[zip file "/data/app/com.ok619.jyqb-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.ok619.jyqb-1, /vendor/lib, /system/lib]]
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
  at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
  at com.qihoo360.mobilesafe.loader.b.newActivity(SourceFile:239)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2107)
  ... 11 more


不知道神马情况,同样的代码mac下没问题,svn同步到win8环境下就启动报错,各种清理环境还是没用,求高手指点...

展开
收起
爱吃鱼的程序员 2020-06-14 17:31:09 809 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    <spanstyle="color:#333333;font-family:Helvetica,Tahoma,Arial,sans-serif;font-size:14px;line-height:24px;background-color:#F5F5F5;">请查看AndroidManifest.xml文件。 com.ok619.jyqb.MainActivity<spanstyle="color:#E53333;">求好评<spanstyle="color:#E53333;">

    2020-06-14 17:31:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Virtualizing Spark on Vmware vSphere 立即下载
Virtualizing Spark on VMware 立即下载
面向多端的AliOS 开放策略 立即下载