用android-studio 打的android包启动游戏 崩溃

creator 版本 mac 1.4.0
ndk: r10e
android-studio版本 2.3.1
gradle 配置:
compileSdkVersion 20
buildToolsVersion ‘25.0.0’

defaultConfig {
    applicationId "com.xxxxx"
    minSdkVersion 10
    targetSdkVersion 15
    versionCode 1
    versionName "1.0"
}

启动游戏报错见附件errorlog.zip (1.4 KB)
errorlog.zip 是运行在三星note 2 android 4.3上崩溃.
如果运行在android7.0的设备上 可以进游戏,但是打开websocket连接 就会崩溃
android7.0crash.zip (3.9 KB)

你好,启动游戏报错是因为你编译的android sdk的API版本用的是20,这个版本需要android4.4以上系统才可以运行起来,可以换成比较低的版本进行编译,第二个问题是websocket的问题,我们会转给相关的开发人员。

试试1.5的版本,websocket还崩溃么?

按照下面的方法 android 4.3和android 7.0都不崩溃了
possible fix by change the ndkr10 to ndkr9 then the game run on all platforms, but I was forced to upgrade to NDK10 then:

changing the target & min sdk at the manifest to 14
add APP_PLATFORM := android-14 to application.mk
clean and build.

1赞

我跟你一样,不过,你的方案我还是崩溃,7.0以上