Problems with the Quick cocos2dx and the Eclipse Connect real Machine Debug

Source: Internet
Author: User

This afternoon solved the problem that I had been suffering for a long time because I had been lazy for two years:

1Eclipse cannot connect to the phone debugging issue.

The Android device you see in Device Manager has a yellow exclamation mark,

Description driver is not up-to-date.

According to the solution found on the Internet, go to the Android SDK directory under the extra search driver to install,

Or go to the utility folder under the Flash Bulder directory as provided on the Adobe Forum to do that.

Mission-wide, no way.

Fortunately, I was gifted and thinking, why not go and search my phone for the corresponding USB driver,

So on the internet to find my phone corresponding driver,

Updated the driver, then the Device Manager inside the display is normal.

Perfect, like, this special is not enough I'm going to hit the computer:

Now, I can finally use their own phone debugging, haha.

2 This Android SDK requires Android Develop Toolkit 23.0.0 or above

I've been doing this for a long time,

The first solution is to change the value of the plugin.version inside the adt\sdk\tools\lib\plugin.prop to be as small as possible.

But after each update to play the SDK, the value of this place will be changed, I think it is time to solve it at all.

Before elicpse the check update was very many times, but Eclipse did not admit that my ADT version is 22.0.

Just found: http://stackoverflow.com/questions/24525595/ This-android-sdk-requires-android-developer-toolkit-version-23-0-0-or-above

Need to uninstall before the ADT,

Then restart Eclipse, re-install ADT with ADT Address, and you won't be prompted for this, which means the version of ADT is resolved.

But.......

If you've just updated the Android Develop Tool then you're going to have a lot of weird questions coming up,

That's because your ADT has other content:Android DDMS, Android Hierarchy Viewer, Android Native Development Tools, Android Traceview are in the lower version,

Just reload them in the way they are.

3 Exception ljava/lang/unsatisfiedlinkerror thrown while initializing ...

When you connect the phone to debug, run to

1  Static {2         System.loadlibrary ("Game"); 3     }

, the newspaper

Exception Ljava/lang/unsatisfiedlinkerror; Thrown while initializing ...

I can't find game.so this file,

So I went to search the internet for a bit,

It is possible that the Build_native.bat compilation was unsuccessful.

Then went to the command line, ran a bit, found the following questions:

Seems to be a ndk_module_path problem, but add ndk_module_path= in Build_native.bat {My NDK path} was found to be an error, so estimation is not an issue with the NDK path,

Looked carefully, found that cocos2dx_root is empty, so set cocos2dx_root to my quick_cocos_2dx below the cocos2dx Path,

Because if set to the other COCOS2DX path that you download, it is likely to cause other problems because of different version.

Then, the problem of App_platform is also resolved in Eclipse , found that only a few warning.

I took a wipe and looked at the last question:cannot find module with tag ' cocos2dx ' in Import path

So I used the most reluctant to use the search engine searched, found the first result is as follows:

http://blog.csdn.net/kissnsms/article/details/12294823

Import a path in your android.mk!

Note that the path to your project is changed

$ (call Import-add-path,/home/nsms/project/cocos2d-x-2.2.0)

$ (call Import-add-path,/home/nsms/project/cocos2d-x-2.2.0/cocos2dx/platform/third_party/android/prebuilt)

According to what he said in the 23rd line of Quick-cocos2d-x-2.2.1-rc\lib\proj.android\android.mk added the above two sentences, the difference is that my value is absolute path.

Then compile it now, as follows:

How to know that your compilation is good, open or refresh your Eclipse project, you will find a Libs folder below your Android project, as follows:

Well, I think I should be able to compile a normal debug on my phone right now.

2014-07-04 17:43

Finally can run up on the mobile phone, there is a moment feel oneself a bit tall on, screenshots, although there are many files can not find the bug.

2014-7-4 17:55

has been on the phone perfect operation, knot paste, hey.

Related Article

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.