接TypeSDK问题记录

Q:创建订单之后无法调起SDK支付,提示创建订单失败

A:是因为发送的数据错误,价格哪里填错了,填得太低

 

Q: 在红米4A中调用登录,闪退 报以下错误

couldn't find "libsdk_patcher_jni.so

A: 从小米sdk网 https://dev.mi.com/doc/p=26/index.html

下载一个包,把里面的arm命名的文件夹中缺乏的libsdk_patcher_jni.so放进去

 

Q:libsdk_patcher_jni.so: has text relocations

A:将targetSdkVersion设为小于23

Q:

 

A:

 

这里的配置要跟导出的包的UnityPlayerActivity路径一样

 

Q:编辑输入框时出现输入法中的输入框内文字为白色

A:修改AndroidManifest.xml文件

在application节点下增加android:theme =“@android:style/Theme.Holo.Lighy.DarkActionBar”

 

Q:雷电模拟器无法看到lua中输出的log,在apk的安装目录的log文件中能看到

A:换了个夜神模拟器就可以了

 

 

Q : android studio 无法连接到安卓模拟器

A : 关闭360

 

 

Q:打包之后出错,无法初始化sdk

 

A:加入 android:name="com.type.sdk.application.TypeApplication"

     android:name="com.type.sdk.android.xiaomi.MainActivity"

 

 

Q:包名没跟渠道中的指定包名对应

 

 A:资源引用丢失,需要在project.properties加入对应的引用,如android.library.reference.1=..\\MainActivity

 

 

 

Q: Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one”

A:Eclipse -> Preferences -> Android -> Lint Error Checking -> Issue -> Security -> HardCodeDebugMode -> Severity: -> Warning即可

 

备注

 

https://blog.csdn.net/yy1300326388/article/details/46422939

【Unity游戏开发】SDK接入与集成——小白入门篇
https://www.cnblogs.com/msxh/p/7220741.html
 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值