问题标签 [dex2oat]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1240 浏览

android - 安装apk时是否可以将一个apk中的所有dex转为oat?

我在 Android 中找到了这段代码:

来自https://android.googlesource.com/platform/art/+/master/runtime/dex_file.cc master

这是否意味着如果 APK 在根目录中有多个 dex,则 dex2oat 会在使用 ART 时将所有 DEX 转换为 OAT?

安装apk时如何将所有dex转换为oat?

0 投票
2 回答
36417 浏览

android - dexopt 和 dex2oat 的区别?

Google正在从Dalvik( ARTAndroid 运行时) 移动。

我试图了解,它将如何提高性能。

我找到的最好的解释是下图:

达尔维克和艺术

已更改的主要组件之一dexoptdex2oat.

由于我对这些不太了解,任何人都可以解释其中的区别以及这将如何提高性能?

0 投票
2 回答
11021 浏览

android - 在 Android 5.0 上动态加载 DEX 文件

在 Android 5.0 之前,我能够使用 DexClassLoader 和调用loadClass()方法动态加载 DEX 文件,但在最新的 Android 版本中,我得到了一个ClassNotFoundException.

这是我正在做的事情:

  1. 生成 DEX 文件。

    /li>
  2. 创建一个 DexClassLoader。

    /li>
  3. 称呼cl.loadClass("myMethod");

我知道 ART 使用 dex2oat 生成一个由 ART 加载的 ELF 文件,但在第 2 步中我正在生成一个 ODEX 文件,所以我不需要在 ART 中完成在运行时加载 DEX 文件的操作,谁能帮忙我 ?

0 投票
1 回答
955 浏览

android - Android 编译器、架构和运行时,它们如何协同工作?

最近在研究Android runtime,特别关注dex2oat这个核心工具。然而 dex2oat 并不是孤立的,而是与 Android 的 boot-image、android-root、指令集、runtime-arg 等一起工作。

谁能解释它们是什么以及它们的用途?他们的内部联系呢?

0 投票
1 回答
140 浏览

android - 三星rom艺术文件

我用的是三星ROM,在使用的时候安装了一个apk dex2oat,当参数为 时--art-fd=13,有一个*.art 文件,然后应用程序崩溃。当参数--art-fd=-1,没有 *.art 文件时,应用程序运行正常。

我想知道什么是艺术文件。有人帮忙吗?

我用十六进制编辑器打开 *.art 文件,这个文件不是 ELF 文件,标题是“oat\n109”。OAT 文件是一个 ELF 文件。这个文件可能是由三星创建的。

0 投票
2 回答
769 浏览

ubuntu - 如何编译可以在ubuntu中运行的dex2oat

我下载了AOSP,但是不知道怎么编译android shell程序,比如dex2oat,可以在Ubuntu下运行。

0 投票
0 回答
1923 浏览

dex2oat - 棉花糖 - dex2oat ~ 权限被拒绝

尝试启动 CameraApp 时被强制关闭:

  • 该文件确实存在于指定的路径上,为什么要再次尝试 dex2oat?
  • 怀疑每次手机启动时这个应用程序也会得到“优化”

logcat可以提供开机app优化日志吗?我应该寻找哪个关键字?

0 投票
1 回答
867 浏览

android - 如何将 Dalvik 字节码转换为 LLVM IR?

我想将 Dalvik 字节码转换为 LLVM IR。我知道 google 的 ART 可以通过 dex2oat 将 dalvik 字节码转换为 oat 文件。Dex2oat 基于 LLVM,我只想将 dex 转换为 LLVM IR 而不是 oat。

那么,你能给我看看 dex2oat 中使用的前端吗?或者你能告诉我任何可以将 dalvik 字节码转换为 LLVM IR 的前端吗?任何建议都非常感谢!非常感谢!

0 投票
2 回答
507 浏览

android - 为什么应用程序以 40 秒的延迟启动?

在我SplashActivity使用retrofiteventbus.

我必须等待开始改造请求,或者可能APP至少开始40 秒

在那之前只是显示一个白页。

每秒我得到两个这样的日志系列:

我该怎么办 ?

谢谢。

0 投票
2 回答
5390 浏览

java - java.lang.ClassNotFoundException: Didn't find class ... on path: DexPathList

I am making an android project game which I recently added some libraries to this project, and since I did I get the same error:

I believe I should say that all the projects / library projects are using the same target "android-23". I have checked all the answers on StackOverflow and other websites and could'nt find any answer that solved my problem. Thanks for helping!

EDIT

The project is written on Netbeans IDE framework, not on android studio and the project isnt using gradle. here is the AndroidManifest.xml file:

EDIT #2

After a little bit of digging it seems like there is a problem with the dex2oat trying to create oat file:

I have no idea what to do now. Referenced libraries: Google Play Services and Android Support v13. If I remove the libraries the project works fine... so what is the problem?