本机调试Android Studio [英] Native Debug Android Studio

查看:327
本文介绍了本机调试Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过Genymotion运行本机调试时,出现了这样的错误.

There was such an error when I run Native debugging through 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.在app/build.gradle中:

1.in app/build.gradle:

在依赖项标签上:

releaseCompile project(path: ':youModuleName', configuration: 'release')
debugCompile project(path: ':youModuleName', configuration: 'debug')

2.在youModule/build.gradle中:

2.in youModule/build.gradle:

在android标签上:

at android label:

publishNonDefault true

演示:

https://github.com/sunalong/JNIDemo

这篇关于本机调试Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆