Kivy Buildozer:.so lib 文件缺少调试符号 [英] Kivy Buildozer: .so lib files missing debug symbols

查看:27
本文介绍了Kivy Buildozer:.so lib 文件缺少调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.so lib 文件缺少调试符号

所以我尝试让我的 bin/debug.apk 在 Buildozer VM 中工作,但是加载 adb 并通过 USB 连接我的 Android 设备时出现问题,所以我将我的 bin/debug.apk 导出到我的桌面进行调试它在 Android Studio 中.但是,在它的第一步中,它会抛出一个错误,要求我将 .so 库替换为具有调试符号的相同库.

.您还可以通过在编辑器窗口的路径映射部分中点击清除来删除映射.

<块引用>

已知问题:将调试符号附加到 APK 时,APK 和可调试的 .so 文件必须使用相同的工作站或构建服务器构建.

来源

.so lib files missing debug symbols

So I tried getting my bin/debug.apk to work in the Buildozer VM, but there was a problem with loading adb and attaching my Android device via USB, so I exported my bin/debug.apk to my desktop to debug it in Android Studio. However, in its first steps, it throws an error that asks me to replace the .so libraries with identical ones that have debug symbols.

.so lib files missing debug symbols

Are these stashed anywhere in the Buildozer VM during the buildozer android debug phase?

Is there a way to either get the libs with the symbols or work around not having them on either Android Studio or the Buildozer VM?

解决方案

Attach native debug symbols

If your APK includes native libraries (.so files) that do not include debug symbols, the IDE shows you a warning in the Messages window. You cannot debug the APK’s native code or use breakpoints without attaching debuggable native libraries.

To attach debuggable native libraries, proceed as follows:

  1. If you have not already done so, make sure to download the NDK and tools.
  2. Under the cpp directory in the Project window (visible only if you have selected the Android view, as shown in below figure), double-click a native library file that doesn't include debug symbols. The editor shows a table of all the ABIs your APK supports.
  3. Click Add at the top right corner of the editor window.
  4. Navigate to the directory that includes the debuggable native libraries you want to attach and click OK.

If the APK and debuggable native libraries were built using a different workstation, you need to also specify paths to local debug symbols by following these steps:

  1. Add local paths to missing debug symbols by editing the field under the Local Paths column in the Path Mappings section of the editor window, as shown in below figure. In most cases, you need only provide the path to a root folder, and Android Studio automatically inspects subdirectories to map additional sources. The IDE also automatically maps paths to a remote NDK to your local NDK download.
  2. Click Apply Changes in the Path Mappings section of the editor window.

You should now see the native source files in the Project window. Open those native files to add breakpoints and debug your app as you normally would. You can also remove the mappings by clicking Clear in the Path Mappings section of the editor window .

Known issue: When attaching debug symbols to an APK, both the APK and debuggable .so files must be built using the same workstation or build server.

Source

这篇关于Kivy Buildozer:.so lib 文件缺少调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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