Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

vscode android ndk quickstart

Developing android ndk apps with vscode

precondition

- vscode
- vscode C/C++ Extension Pack
- vscode CMake Tools Extension
- CMake
- Android SDK

modify the environment variables in the CMakePresets.json file and replace them with your local environment.

"environment": {
    "ANDROID_SDK_HOME": "D:/ProgramData/Android",
    "CMAKE": "3.22.1",
    "NDK": "27.0.11718014",
    "SDK": "22"
    ...
}

The file .vscode/c_cpp_properties.json should be in your directory

Debug

Android has removed gdb since ndk 23 and now uses lldb for debugging.

plugin CodeLLDB

the demo /data/local/tmp/HelloWorld may not have execute permissions.

use adb shell su -c chmod 777 /data/local/tmp/HelloWorld

refe

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages