Crossapp Project compiles an error solution in eclipse

Source: Internet
Author: User

1, import Android project, if the Java code error, the lack of the corresponding Java files, then copy the files in the CROSSAPP-MASTER\CROSSAPP\PLATFORM\ANDROID\JAVA\SRC directory under the SRC directory of the project.
2, if prompted the compiler tool NDK problem, then right-click on the project name, select the bottom of the properties, open the Configuration page, select C + + build, in the build command to paste the path of the ndk-build.cmd in your own NDK directory, then select OK.



3, is also easy to forget a mistake, the initial compilation, may prompt

"\" d:\\home\\android-ndk-r10c\\ndk-build.cmd\ ""Android NDK:WARNING:APP_PLATFORM android-18 is larger than Android:minsdkversion 8 in./androidmanifest.xmlAndroid ndk:jni/android.mk:cannot Find module with tag ' Crossapp ' in Import pathAndroid ndk:are sure your ndk_module_path variable is properly defined? Android ndk:the following directories were searched:Android NDK:jni/android.mk:29: * * * Android ndk:aborting.  . Stop.


This error requires opening the Android.mk file in the project's JNI directory $ (Call Import-module, Crossapp)
Add two sentences above
$ (Call Import-add-path, D:/crossapp-master)$ (Call Import-add-path, d:/crossapp-master/crossapp/platform/third_party/android/prebuilt)


Here is the directory of my current CrossappD:/crossapp-masterThese two lines are replaced by your own Crossapp directory. (Note that this is a backslash)
4, and then run the words can see the C + + file has started compiling, but there is a problem, after the first compilation, the runtime may be error. Prompt to not find the dynamic link library file, this time to run again. (This bug has been there for some time, it may be my environmental problem)
5. When running on the Genymotion emulator, the default configuration is not operational. Because the Genymotion emulator is the x86 architecture used, and the default NDK generates only *.so files for the ARM architecture, to support the x86 architecture, add a sentence to the JNI application.mk file: App_abi:=x86
This method should be compiled x86 version, the results are assured Crossapp lack of necessary files resulting in unable to compile, the current version v0.3.10 hope to be resolved later. If you have a good idea, please reply to me [email protected]












From for notes (Wiz)

Crossapp Project compiles an error solution in eclipse

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.