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 ~