-
-
Notifications
You must be signed in to change notification settings - Fork 9
android-studio 不能显示源码和调试 #5
Copy link
Copy link
Open
Labels
contribution welcomeenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
描述问题
使用 xmake-gradle 编译 JNI, 在 build.gradle, xmake.lua 中配置 debug 模式,
在 jni 的 c++ 代码中设置的断点无效. 对比 CMAKE 工程:
- CMAKE 工程可以在 project 区显示 CPP 源代码的文件, xmake-gradle 没有显示.
- CMAKE 工程在调试状态断点工作正常, xmake-gradle 编译的工程断点工作不正常.
期待的结果
- 在 android-studio 的 project 区可以正常显示 xmake 搜索到的 jni 源文件列表.
- 调试模式下, jni 源文件中的断点工作正常.
错误信息
无错误信息.
相关环境
OS: MacOSX Catalina 10.15.4
xmake: 2.3.3
xmake-gradle: 1.0.7
android-studio: 3.6.3
android-ndk:
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;28.0.3 | 28.0.3 | Android SDK Build-Tools 28.0.3 | build-tools/28.0.3/
build-tools;29.0.3 | 29.0.3 | Android SDK Build-Tools 29.0.3 | build-tools/29.0.3/
cmake;3.10.2.4988404 | 3.10.2 | CMake 3.10.2.4988404 | cmake/3.10.2.4988404/
emulator | 30.0.12 | Android Emulator | emulator/
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/
platform-tools | 30.0.1 | Android SDK Platform-Tools | platform-tools/
platforms;android-19 | 4 | Android SDK Platform 19 | platforms/android-19/
platforms;android-28 | 6 | Android SDK Platform 28 | platforms/android-28/
system-images;android-29;google_apis;x86 | 10 | Google APIs Intel x86 Atom System Image | system-images/android-29/google_apis/x86/
tools | 26.1.1 | Android SDK Tools 26.1.1 | tools/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
contribution welcomeenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed