2017-06-04
原来模块中不能的R.id.xxx,只能用UZResourcesIDFinder.getResIdID("mo_minivr_framecontainer")
引用layout资源文件的时候,我居然加了一个xml UZResourcesIDFinder.getResLayoutID("mo_minivr_panframe_player.xml")死活找不到资源
改成UZResourcesIDFinder.getResLayoutID("mo_minivr_panframe_player")就好了。
2017-06-07
我以为String dataType = moduleContex.optString("dataType");如果没有传dataType的值的话,返回的应该是空对象null吧,哪知道不是,返回的为""。
看来只能改为String dataType = moduleContex.optString("dataType", null);了
2017-06-07
apicloud模块原来是需要两种so包的,我用纯粹的安卓开发只要一种so包,就是armeabi。
但apicloud模块需要两种,分别是armeabi和armeabi-v7a,我在做百度地图定位sdk开发的时候,
发现只上传armeabi的话,百度提示NetWork location failed because baidu location service can not decrypt the request query, please check the so file !
2017-08-12
xib文件需要放到target目录里面。
xib文件和资源文件需要放到target的根目录里,不能放到target的子目录里
资源文件不能放到res_xxx目录下。
2018-06-25
最新版的xcode害死人,又浪费了我好多时间。
新建静态工程后,这里总是默认的最高版本,可能是11.4
而APICloud模块开发需要较低版本,7或8
2018-09-22
本地打包可以,放到云编译就报错
09-22 15:14:06.805 23432-23432/com.channelsoft.nncc E/app3c: sorry, we have catch a crash log
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.channelsoft.nncc/com.unionpay.uppay.PayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.InputStream.skip(long)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2725)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2786)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6268)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.InputStream.skip(long)' on a null object reference
at java.io.FilterInputStream.skip(FilterInputStream.java:151)
at com.unionpay.mobile.android.resource.c.a(Unknown Source)
at com.unionpay.mobile.android.widgets.m.<init>(Unknown Source)
at com.unionpay.mobile.android.widgets.m.<init>(Unknown Source)
at com.unionpay.mobile.android.plugin.BaseActivity.onCreate(Unknown Source)
at com.unionpay.uppay.PayActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6720)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2678)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2786)?
at android.app.ActivityThread.-wrap12(ActivityThread.java)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)?
at android.os.Handler.dispatchMessage(Handler.java:102)?
at android.os.Looper.loop(Looper.java:154)?
at android.app.ActivityThread.main(ActivityThread.java:6268)?
at java.lang.reflect.Method.invoke(Native Method)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)?
--------- beginning of crash
09-22 15:14:06.805 23432-23432/com.channelsoft.nncc E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.channelsoft.nncc, PID: 23432
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.channelsoft.nncc/com.unionpay.uppay.PayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.InputStream.skip(long)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2725)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2786)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6268)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.InputStream.skip(long)' on a null object reference
at java.io.FilterInputStream.skip(FilterInputStream.java:151)
at com.unionpay.mobile.android.resource.c.a(Unknown Source)
at com.unionpay.mobile.android.widgets.m.<init>(Unknown Source)
at com.unionpay.mobile.android.widgets.m.<init>(Unknown Source)
at com.unionpay.mobile.android.plugin.BaseActivity.onCreate(Unknown Source)
at com.unionpay.uppay.PayActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6720)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2678)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2786)?
at android.app.ActivityThread.-wrap12(ActivityThread.java)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)?
at android.os.Handler.dispatchMessage(Handler.java:102)?
at android.os.Looper.loop(Looper.java:154)?
at android.app.ActivityThread.main(ActivityThread.java:6268)?
at java.lang.reflect.Method.invoke(Native Method)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)?
后来发现是assets里面有一个文件,它那个sdk好像用到了这个文件,加进去就ok了。data.bin