当前位置: 首页 > 知识库问答 >
问题:

如何为您的android设置找到ndk修订号

郦祯
2023-03-14

有没有办法从命令行或android studio中找到ndk修订号?

我的用例是android studio已经运行了一个更新,用最新版本替换了ndk bundle,我想知道修订号是什么。i、 e.r10d、r11a等。

更新

~/Android/Sdk/ndk-bundle/CHANGELOG. md看起来像这样-我看不到对修订号的明确引用,你能吗?也许只有11个,但他们通常也有一个字母?

Changelog
=========

Report issues to [GitHub].

[GitHub]: https://github.com/android-ndk/ndk/issues

NDK
---
 * Removed all sysroots for pre-GB platform levels. We dropped support for them
   in r11, but neglected to actually remove them.
 * Exception handling when using `c++_shared` on ARM32 now mostly works (see
   [Known Issues](#known-issues)). The unwinder will now be linked into each
   linked object rather than into libc++ itself.
 * Default compiler flags have been pruned:
   https://github.com/android-ndk/ndk/issues/27.
     * Full changes here: https://android-review.googlesource.com/#/c/207721/5.
 * `-fno-limit-debug-info` has been enabled by default for Clang debug builds.
   This should improve debugability with LLDB.
 * `--build-id` is now enabled by default.
     * This will be shown in native crash reports so you can easily identify
       which version of your code was running.
 * `NDK_USE_CYGPATH` should no longer cause problems with libgcc:
   http://b.android.com/195486.
 * `-Wl,--warn-shared-textrel` and`-Wl,--fatal-warnings` are now enabled by
   default. If you have shared text relocations, your app will not load on
   Marshmallow or later (and have never been allowed for 64-bit apps).
 * Precompiled headers should work better:
   https://github.com/android-ndk/ndk/issues/14 and
   https://github.com/android-ndk/ndk/issues/16.

Clang
-----

 * Clang has been updated to 3.8svn (r256229, build 2690385).
     * Note that Clang packaged in the Windows 64 NDK is actually 32-bit.
 * `__thread` should work for real this time.

GCC
---

 * Synchronized with the ChromeOS GCC @ `google/gcc-4_9` r227810.
 * Backported coverage sanitizer patch from ToT (r231296).
 * Fixed libatomic to not use ifuncs:
   https://github.com/android-ndk/ndk/issues/31.

Binutils
--------

 * "Erratum 843419 found and fixed" info messages are silenced.
 * Introduced option '--long-plt' to fix internal linker error when linking huge
   arm32 binaries.
 * Fixed wrong run time stubs for AArch64. This was causing jump addresses to be
   calculated incorrectly for very large DSOs.
 * Introduced default option '--no-apply-dynamic' to work around a dynamic
   linker bug for earlier Android releases.
 * NDK r11 KI for `dynamic_cast` not working with Clang, x86, `stlport_static`
   and optimization has been fixed.

GDB
---

 * Updated to GDB 7.11: https://www.gnu.org/software/gdb/news/.

Known Issues
------------

 * This is not intended to be a comprehensive list of all outstanding bugs.
 * x86 ASAN still does work. See discussion on
   https://android-review.googlesource.com/#/c/186276/
 * Exception unwinding with `c++_shared` still does not work for ARM on
   Gingerbread or Ice Cream Sandwich.
 * Bionic headers and libraries for Marshmallow and N are not yet exposed
   despite the presence of android-24. Those platforms are still the Lollipop
   headers and libraries (not a regression from r11).
 * RenderScript tools are not present (not a regression from r11):
   https://github.com/android-ndk/ndk/issues/7.
 * r12 will most likely not work with Android Studio/Gradle right away. The
   Gradle plugin will need to be updated to match the build changes we made in
   `ndk-build`.
 * We've regressed on http://b.android.com/41770.

共有3个答案

闾丘冠玉
2023-03-14

在Android Studio版本4.1.1中,我可以从菜单中找到已安装的NDK版本。转到工具-

储承
2023-03-14

当我试图构建这个版本的boost并使用下面的代码来检索我的NDK版本时,我遇到了同样的问题。

version=$(sed -En -e 's/^Pkg.Revision\s*=\s*([0-9a-f]+)/r\1/p' $source_properties)

其中source_properties=$AndroidNDKRoot"/source.properties"在NDK文件夹的根目录。

锺离卓
2023-03-14

有一个源代码。r11及更新版本的NDK根目录中的属性文件。旧版本有一个版本。TXT。

 类似资料:
  • 我使用的是Windows 7 64位计算机,目标SDK版本是23。

  • 问题内容: 我需要javah和android-ndk的帮助。 我尝试为本机方法生成H文件,但是 javah 表示 未找到类文件 。 我的目标类的绝对名称为$ PROJECT_DIRECTORY / src / bt / nativeclient / BtnativeActivity.java, 并包含以下代码: 我试图从以下路径启动 javah : 我试图指定 -classpath 路径: 我尝试

  • 我试图使用flutter_webview_plugin在我的flutter应用程序中实现webview,但它在运行时弹出错误。详情如下。但如果我运行简单的hello world应用程序,它就能成功运行。 错误我正在获取*错误运行gradle:processException:进程“j:\flutterStudioProjects\knowledge_suttra\android\gradlew.b

  • 我有NDK C代码,它会产生SIGSEGV错误。我找不到它。自定义信号处理返回空堆栈跟踪。 如果我在Android Studio调试器中捕捉到错误,我会得到以下跟踪: 线程93-RxNewThreadSche 没有一个代码是“我的”。只有“熟悉”是第一行,但我不知道在哪里可以找到它。有什么想法吗?

  • 我正在尝试清理项目,但在控制台上给了我错误 无法运行程序“C:\ProgramFiles\Java\JRE1.8.0_31\bin\ServerC:\ProgramFiles\Java\JRE1.8.0_31\bin C:\ProgramData\Oracle\Java\JavaPath C:\Windows\System32 C:\Windows C:\Windows\System32\WBEM

  • 此问题询问有关在容器中列出卷的问题。 但我想知道的是,在不创建容器的情况下,如何找到配置到映像本身中的卷? 这个想法是,在允许容器从该映像运行之前,我想知道映像对映射到主机文件系统的卷可能做什么。 官方的映像就是一个很好的例子。当您启动此映像的容器时,它会自动在处创建一个卷。有没有办法在启动容器之前弄清楚?