简体   繁体   English

如何在Android平台工具中构建dexdump?

[英]How to build dexdump in Android platform-tools?

I've cloned https://github.com/android/platform_dalvik . 我已经克隆了https://github.com/android/platform_dalvik Then I've introduced some changes to DexDump.cpp file and I wanted to build it with those changes but I failed. 然后,我对DexDump.cpp文件进行了一些更改,我想用这些更改来构建它,但是失败了。

I tried using: 我尝试使用:

make -f Android.mk

inside root directory but I get these errors: 在根目录中,但出现以下错误:

Android.mk:25: /libdex/Android.mk: No such file or directory Android.mk:25:/libdex/Android.mk:没有这样的文件或目录

Android.mk:25: /dexgen/Android.mk: No such file or directory Android.mk:25:/dexgen/Android.mk:无此类文件或目录

Android.mk:25: /dexdump/Android.mk: No such file or directory Android.mk:25:/dexdump/Android.mk:无此类文件或目录

Android.mk:25: /dx/Android.mk: No such file or directory Android.mk:25:/dx/Android.mk:没有这样的文件或目录

Android.mk:25: /tools/Android.mk: No such file or directory Android.mk:25:/tools/Android.mk:无此类文件或目录

Even though all these Android.mk files exist. 即使所有这些Android.mk文件都存在。 Also, I'm pretty sure I'm positioned in a right directory when calling 'make'. 另外,我很确定在调用“ make”时我位于正确的目录中。

I have very little experience with C and C++ so many of these things are completely new to me. 我对C和C ++的经验很少,所以其中很多对我来说都是全新的。 Did anyone here build dexdump successfully? 这里有人成功构建了dexdump吗? Help would be appreciated. 帮助将不胜感激。

I've reached to Google developer and he helped me build it. 我接触了Google开发人员,他帮助我进行了构建。 Here is his email to me: 这是他给我的电子邮件:

Start here: https://source.android.com/source/building.html Once you have set up the build environment (the steps before "Build the code"), use the bash functions imported by envsetup. 从这里开始: https ://source.android.com/source/building.html设置构建环境(“构建代码”之前的步骤)后,请使用envsetup导入的bash函数。 Don't run make, that's not how it's intended to be used for projects. 不要运行make,这不是它打算用于项目的方式。 Run mma. 运行mma。 The result will be in out/host/linux-x86/bin. 结果将在out / host / linux-x86 / bin中。 Note that the dalvik/ dexdump will be deprecated some time soon, and the dexdump2 version inside art/ will replace it. 请注意,dalvik / dexdump将在不久的将来被弃用,art /中的dexdump2版本将替换它。

You can also run "mma dexdump" and it should build only dexdump. 您也可以运行“ mma dexdump”,它应该仅构建dexdump。 Just change the code to suit your needs in DexDump.cpp 只需在DexDump.cpp中更改代码以适合您的需求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在平台工具下找不到Android dexdump - Android dexdump not found under platform-tools 什么是Android SDK构建工具,平台工具和工具? - What is Android SDK build-tools, platform-tools and tools? 如何更改 Android SDK Platform-Tools? - How to change Android SDK Platform-Tools? Android 构建工具安装在“/Applications/ADT/sdk/platform-tools” - Android Build Tools installed at '/Applications/ADT/sdk/platform-tools' 如何更改平台工具 - How to change Platform-TOOLs 如何在无头linux中更新Android平台工具? - How to update Android platform-tools in a headless linux? 什么是Android SDK构建工具,平台工具和工具?应该使用哪个版本? - What are the Android SDK build-tools, platform-tools and tools? And which version should be used? 如何安装Android SDK Platform-Tools 24.0.0? - How do I install Android SDK Platform-Tools 24.0.0? 如何在Eclipse中安装较旧的Android SDK平台工具23.0.1? - How to install older Android SDK Platform-tools 23.0.1 in Eclipse? 构建 maximo anaywhere 7.6.3.1 应用程序所需的 Android SDK 平台工具和 Android SDK 工具的版本是什么? - what is the version of Android SDK Platform-tools and Android SDK Tools required to build maximo anaywhere 7.6.3.1 apps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM