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