本机调试 Android Studio
Native Debug Android Studio
我运行通过Genymotion原生调试的时候出现这样的错误
Starting LLDB server: run-as org.cocos2dx.cpp_empty_test
/data/data/org.cocos2dx.cpp_empty_test/lldb/bin/start_lldb_server.sh
/data/data/org.cocos2dx.cpp_empty_test/lldb
/data/data/org.cocos2dx.cpp_empty_test/lldb/tmp/platform.port1442313534865
"lldb process:gdb-remote packets"
Now Launching Native Debug Session
Attention! No symbol directories found - please check your native debug configuration
Failed to attach native debugger: Invalid URL: adb://[169.254.67.102:5555]:46216
Invalid URL: adb://[169.254.67.102:5555]:46216
Process finished with exit code 0
你可以试试这个:
1.in app/build.gradle:
在依赖标签:
releaseCompile project(path: ':youModuleName', configuration: 'release')
debugCompile project(path: ':youModuleName', configuration: 'debug')
2.in youModule/build.gradle:
在 android 标签:
publishNonDefault true
演示:
我遇到了同样的问题,得到了解决方法。但我不确定该解决方案是否适合您。
我的解决方案是:在调试配置中添加 so 路径。
1.打开'Run/Debug Configurations'对话框;
2.点击'Debugger'标签;
3. 添加 'Symbol Directories' 和你的 so 路径。
我的配置如下:
如果您已完成此处的所有步骤http://www.akaita.com/post/android-native-library-module-debug/ then you might also be suffering from a bug which is still in Android Studio 2.3.3 which is that the project's IML file gets out of sync with the gradle scripts and gets stuck in the release variant. See the accepted answer on this SO question: 。
引用该答案:
IML 文件 "native-android-gradle" 部分中的 "t turns out this is due to an old bug in AS. Apparently in the past the "SELECTED_BUILD_VARIANT" 可能与实际选择的口味不一致。"
要解决此问题,请关闭 Android Studio 并打开正在构建本机库的模块的 IML 文件(对于单个模块应用程序,只是应用程序的 IML 文件),然后查看"native-android-gradle"。对我来说,这已经成为发布变体。手动更改它并重新启动我的符号。
我运行通过Genymotion原生调试的时候出现这样的错误
Starting LLDB server: run-as org.cocos2dx.cpp_empty_test /data/data/org.cocos2dx.cpp_empty_test/lldb/bin/start_lldb_server.sh /data/data/org.cocos2dx.cpp_empty_test/lldb /data/data/org.cocos2dx.cpp_empty_test/lldb/tmp/platform.port1442313534865 "lldb process:gdb-remote packets" Now Launching Native Debug Session Attention! No symbol directories found - please check your native debug configuration Failed to attach native debugger: Invalid URL: adb://[169.254.67.102:5555]:46216 Invalid URL: adb://[169.254.67.102:5555]:46216 Process finished with exit code 0
你可以试试这个:
1.in app/build.gradle:
在依赖标签:
releaseCompile project(path: ':youModuleName', configuration: 'release')
debugCompile project(path: ':youModuleName', configuration: 'debug')
2.in youModule/build.gradle:
在 android 标签:
publishNonDefault true
演示:
我遇到了同样的问题,得到了解决方法。但我不确定该解决方案是否适合您。 我的解决方案是:在调试配置中添加 so 路径。 1.打开'Run/Debug Configurations'对话框; 2.点击'Debugger'标签; 3. 添加 'Symbol Directories' 和你的 so 路径。
我的配置如下
如果您已完成此处的所有步骤http://www.akaita.com/post/android-native-library-module-debug/ then you might also be suffering from a bug which is still in Android Studio 2.3.3 which is that the project's IML file gets out of sync with the gradle scripts and gets stuck in the release variant. See the accepted answer on this SO question:
引用该答案: IML 文件 "native-android-gradle" 部分中的 "t turns out this is due to an old bug in AS. Apparently in the past the "SELECTED_BUILD_VARIANT" 可能与实际选择的口味不一致。"
要解决此问题,请关闭 Android Studio 并打开正在构建本机库的模块的 IML 文件(对于单个模块应用程序,只是应用程序的 IML 文件),然后查看"native-android-gradle"。对我来说,这已经成为发布变体。手动更改它并重新启动我的符号。