官方技术支持一下吧。Anysdk 自定义闪屏,android,ios都秒退,ios报错如下

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
    
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"AppController");//这行报错了
    [pool release];
    return retVal;
}

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication subclass instance. No class named NSApplication is loaded.'
*** First throw call stack:
(0x18426afe0 0x182ccc538 0x18426aeb4 0x184d0278c 0x18a620b10 0x18a401024 0x1000c6450 0x18315559c)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Android报错如下

12-22 00:57:21.621: E/AndroidRuntime(24540): FATAL EXCEPTION: main
Process: com.wbget.test, PID: 24540
java.lang.RuntimeException: Unable to destroy activity {com.wbget.test/org.cocos2dx.javascript.AppAct
ivity}: java.lang.NullPointerException
	at android.app.ActivityThread.performDestroyActivity(Activ
ityThread.java:3705)
	at android.app.ActivityThread.handleDestroyActivity(Activi
tyThread.java:3723)
	at android.app.ActivityThread.access$1500(ActivityThread.j
ava:162)
	at android.app.ActivityThread$H.handleMessage(ActivityThre
ad.java:1319)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:157)
	at android.app.ActivityThread.main(ActivityThread.java:538
7)
	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:1265)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java
:1081)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
	at org.cocos2dx.lib.Cocos2dxHelper.runOnGLThread(Cocos2dxH
elper.java)
	at org.cocos2dx.lib.Cocos2dxAudioFocusManager.unregisterAu
dioFocusListener(Cocos2dxAudioFocusManager.java)
	at org.cocos2dx.lib.Cocos2dxActivity.onDestroy(Cocos2dxAct
ivity.java)
	at org.cocos2dx.javascript.AppActivity.onDestroy(AppActivi
ty.java)
	at android.app.Activity.performDestroy(Activity.java:5603)
	at android.app.Instrumentation.callActivityOnDestroy(Instr
umentation.java:1135)
	at android.app.ActivityThread.performDestroyActivity(Activ
ityThread.java:3692)
	... 11 more

使用的是creator 1.7.2 beta.1
anysdk 使用官方最新的,会出现这个错误。

[AnySDK_Channel]: 96676
[AnySDK_ChannelName]: GooglePlay
[AnySDK_Package]: com.test.test1
[AnySDK_Time]: 2017-12-21 23:59:16
[AnySDK_Error]:

A/ (26297): First type is not attr!

这个是我打包android的报错,只加新浪微博的分享在里面,选的是Google play渠道。

于是参考了 这篇帖子,把android相关的插件全部也升级到我用到27.0.2版本,打包成功了。
正常打包,俩个平台都是好的,添加splash就坏了,进不去了,splash一完,就报错。

anysdk用了之后,真的很方便。
手动顶起来,加群也没通过,有没有谁遇到同样的问题呀。

我也一样啊,你解决了吗.
我升级到1.7后,anysdk打包微信

没解决,正常找解决方案。

补充一个发现的线索。
我把用creator打出来的包,不放到anysdk中,直接安装到手机上,用应用宝安装,显示 安装失败 APK安装包损坏请重新下载安装包,但是我用adb install是可以正常安装上去,并且可以运行。