Android Studio Native Debugging

Source: Internet
Author: User

This section describes debugging our sample native app in Androidstudio.


Note: Android studio has been supporting native development. Some developers have reported problems using Note4 running Lollipop (5.0.x) and using S6 to run 5.0.0, which can cause some debugging problems. If you have debugging problems, try updating to the latest system software, or post on the Oculus Forum.


The default configuration for project import only supports Jave debugging.

Select Edit Configuratios ... The Configurations drop-down menu for the Android Studio toolbar.


Build a new Android native configuration as shown below:


In the general column of the Run/debug Configuration dialog box, give your configuration a name, select the target module, and select the target device mode:


In the native column of the Run/debug Configuration dialog box, add the symbol path:


Note Ndk-build places the library into the libs/directory without the symbol table. You must specify that the lookup path is the obj/local/<arch> directory. It cannot be a recursive search to the path, so you must set the absolute path to the obj/local/armeabi-v7a directory.



Android Studio Native Debugging

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.