linux - Android-studio 3.0-beta6 aapt 在 libc++.so 中失败

标签 linux aapt libc++ android-studio-3.0 android-gradle-3.0

在更新到 Android-Studio beta-6 和 gradle 到 3.0.0-beta6 后,我开始在 mergeDebugResources 任务中遇到 aapt 错误:

:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeDebugResources'.
> /tmp/aapt2_2254604547909969947/libc++.so: /tmp/aapt2_2254604547909969947/libc++.so: failed to map segment from shared object

文件信息:

file /tmp/aapt2_2254604547909969947/libc++.so
/tmp/aapt2_2254604547909969947/libc++.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped, with debug_info

操作系统:Linux 4.8.17-r2

出了什么问题以及如何解决?

最佳答案

我解决了。我收到此错误 failed to map segment from shared object 因为 /tmp 目录中的 noexec 标志:

tmpfs /tmp tmpfs rw,noatime,size=2G,nodev,mode=1777,noexec,nosuid

所以我不得不删除这个标志并重新挂载分区。

关于linux - Android-studio 3.0-beta6 aapt 在 libc++.so 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46379446/

相关文章:

c++ - 按类型和歧义提取元组的元素

c++ - libc++ 的 std::map/set::equal_range 实现给出了意想不到的结果

c - 在内核空间和用户空间工作

linux - SLES12 上的 getent passwd 错误

android - 28.0.3 aapt.exe'' 以非零退出值 1 完成

java - 需要帮助更改 APK 文件中的 AndroidManifest.xml

android - aapt 错误获取 'android:name' 属性 : attribute is not a string value

c++ - 为什么 is_swappable 和 is_nothrow_swappable 不包含在 C++11 中?

linux - 设置捕获组的长度

linux - chmod : missing operand after a+t