This post consists of: http://www.sollyu.com/unity3d-operators-paid-android-package-trap-libunicomsdk-jar/
Description
Think of doing Unity3d SDK integration has been almost 2 years, encountered a lot of very tricky SDK, which is based on the operator's SDK.
In one of my other articles, I mentioned the 移动MM solution of not finding a file after using unity Packaging mmiap.xml .
The most obvious phenomena that occur in this phenomenon are:
- Using the IDE to run the official demo, or to do the test program yourself, the operation is very normal
- However, after the use of Unity3d packaging will find that it is not working properly, in the Logcat view will find that the XXXX file is generally not found.
For example:
联通SDKwhen you integrate, you get an error:java.io.FileNotFoundException:armeabi/libunicomsdk.jar
I've seen a lot of things like this, and then I found out why:
The carrier gives the jar package, not only the .class file, but also more will assets的资源文件打包进去 .
Move mm for proof
Move the mmsmsbilling1.2.3.jar package contents of MM.
Unicom SDK
Unicom Multimode_UniPay_base.jar Package content.
Workaround
Unzip the jar package using the decompression software
Copy the extracted /assets/ files under the folder to the project 工程的assets文件夹下 .
Package the remaining com cn等含有.class文件的文件夹 use jar -cvf com.jar com commands into a new jar package. ( com a folder in the command )
You can also use jar -cvf ../com.jar . this to package all the files in the current directory
Place the new jar package 项目的libs文件夹 under.
Using Unity to pack is OK.
Article from: Unity3d operators pay for Android packaging traps Libunicomsdk.jar
Unity3d operators pay for Android packaging traps Libunicomsdk.jar