Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Android studio下运行错误

$
0
0

@neuxuanxuan 写道:

刚生成的HelloWorld,用android studio打开就无法模拟运行,用的是mac版本,提示如下,关键部分已加粗

10/16 12:36:47: Launching HelloWorld
$ adb push /Users/xixi/Desktop/workspace/HelloWorld/proj.android-studio/app/build/outputs/apk/HelloWorld-debug.apk /data/local/tmp/sy.xixi.cn
$ adb shell pm install -r "/data/local/tmp/sy.xixi.cn"
Success

$ adb shell am start -n "sy.xixi.cn/org.cocos2dx.cpp.AppActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 3369 on device emulator-5554
W/System: ClassLoader referenced unknown path: /data/app/sy.xixi.cn-1/lib/x86_64
I/InstantRun: Instant Run Runtime started. Android package is sy.xixi.cn, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/sy.xixi.cn-1/lib/x86_64
D/AndroidRuntime: Shutting down VM

              --------- beginning of crash

E/AndroidRuntime: FATAL EXCEPTION: main
Process: sy.xixi.cn, PID: 3369
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-httpclient-4.4.1.1_6e1a2b476f3f01a8e4d3db50d5aaa86b52777f55-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-com.android.vending.expansion.zipfile_fa542a82a8876ed9a8a444c3331905ff7cc0c2bc-classes.dex", dex file "/data/data/sy.xixi.cn/files/instant-run/dex/slice-android-async-http-1.4.9_cdf171f023b49669cb2aa0745b8e708d9079b078-classes.dex"],nativeLibraryDirectories=[/data/app/sy.xixi.cn-1/lib/x86_64, /system/lib64, /vendor/lib64]]] couldn't find "libMyGame.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:972)
at java.lang.System.loadLibrary(System.java:1530)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:264)
at android.app.Activity.performCreate(Activity.java:6664)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>