Unity3d operators pay for Android packaging traps Libunicomsdk.jar

Source: Internet
Author: User

Unity3d operators pay for Android packaging traps 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:

    1. Using the IDE to run the official demo, or to do the test program yourself, the operation is very normal
    2. 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
    1. Unzip the jar package using the decompression software

    2. Copy the extracted /assets/ files under the folder to the project 工程的assets文件夹下 .

    3. 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

    4. Place the new jar package 项目的libs文件夹 under.

    5. Using Unity to pack is OK.

Unity3d operators pay for Android packaging traps Libunicomsdk.jar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.