Unity calls the mmbilling_2.4.2 Android SDK.

Source: Internet
Author: User

You see this article from HTTP://WWW.CNBLOGS.COM/AYANMW

Project to use Android mobile payment SDK in-app billing [http://dev.10086.cn/wiki/?p2_01_05]

Because of the need for unity and Android interaction, the previous study, unity and Android interaction is possible. But why is the SDK call for unity and mmbilling unsuccessful?

After several days of research, through the Eclipse ADT Logcat log, found that the run times wrong, the error content is temporarily not recorded, in short, the problem of resources can not be found. There is a phenomenon of collapse. Simply put Unity pack apk, unzip, add the Mmbilling.2.4.0.jar directory under the

VERSION Mmiap.xml Copyrightdeclaration.xml and MMIAP in the assets directory. Finally succeeded.

Later, you want to add files directly from the Unity project and put these files into the APK line?

Unity3d Release APK resource Package and access mode

As long as the streamingassets in the Unity Assets Directory is established, the files are in the apk.apk/assets/directory when the APK is packaged.

But the other three files will not work under Unity's Assets/plugins/android/or assets/directory.

There are searches, see articles:

Unity3d Technology Essentials for integrated mobile mm SDK 2.2 (Pit daddy's mm SDK)

I'm in agreement with my solution.

Only the tools used are different. I only use the JDK files, no anti-compilation.

Links to official website documents about unity calling Android:

Http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Http://docs.unity3d.com/Documentation/ScriptReference/Application.html

The Unity apk root directory is decentralized, only through the AAPT tool.

Reprint please indicate the source: HTTP://WWW.CNBLOGS.COM/AYANMW I will be very happy!

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.