Integrate the android project configuration after Plugin-x

Source: Internet
Author: User

After following the previous post plug-in-x integration in Android, I used eclipse on Windows to debug the project and found some problems ~

1. First, find the jar package to be referenced. The path is incorrect ~ It turns out that the path in Windows is incorrect ~ Corrected the path. OK ~

2. next, add ndk_module_path =$ {plugin_root}/publish according to the previous post "Plugin-x integration in Android" and "Edit manual, I previously created new_builder under Properties> builders of the project, so I directly edited environment under new_builder, ndk_module_path to add D: \ tools \ cocos2d-2.1rc0-x-2.1.3 \ plugin \ publish

3. next, refer to the previous post "Plugin-x integration in Android" "Edit manual" Step 2, step 3 to modify, step 2 to modify main under JNI/hellocpp under the project. CPP. Step 3: Modify the main activity4 in SRC under the project. After the modification, you will find that you cannot find pluginwrapper or other classes and add the android library of the project. 5. Modify appdelegate. cpp and call the third-party SDK ~ You can refer to the example cocos2d-x \ plugin \ Samples given by the cocos2d-2.1rc0-x-2.1.3 under 6. finally, I don't know why. Use the Plugin-x tool to generate androidmanifest. XML missing content, such as umeng's: <meta-data Android: value = "" Android: Name = "umeng_appkey"> </meta-data>
<Meta-data
Android: Name = "umeng_channel"
Android: value = "cocos2d-x">
</Meta-data> however, the permissions are still correct for a long time. Forget it. manually add the permissions ~ I went to umeng to get an appkey and tested it. OK ~

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.