Here is the make file i am using to generate and JAVA module which i am importing in another module. While compiling it, the build breaks saying
这是我用来生成的make文件和我在另一个模块中导入的JAVA模块。在编译时,构建打破说
error: 'out/target/common/obj/JAVA_LIBRARIES/android.hardware.automotive.vehicle@2.0-java_intermediates/classes.dex.toc', needed by 'out/target/common/obj/JAVA_LIBRARIES/vendor.harman.hardware.automotive.vehicle.fca_r1@1.0-java_intermediates/with-local/classes.dex', missing and no known rule to make it
Any suggestion on how to generate a .toc file in general? Anything specific to be added in the make file?
有关如何生成.toc文件的任何建议吗?是否有任何特定要添加到make文件中?
1 个解决方案
#1
2
Usually such toc file will be auto generated during fullbuild, but if it is missing when you build single module you can manually generate the classes.dex.toc with the following command:
通常这样的toc文件将在fullbuild期间自动生成,但如果在构建单个模块时丢失,则可以使用以下命令手动生成classes.dex.toc:
dexdump2 classes.dex >> classes.dex.toc
If you want to know the details, please read the sourcecode of android build system: _transform_dex-to-toc
https://android.googlesource.com/platform/build/+/f972a4a980660d2347ace8fdc7c668403c0e9697/core/definitions.mk
如果您想了解详细信息,请阅读android构建系统的源代码:_transform_dex-to-toc https://android.googlesource.com/platform/build/+/f972a4a980660d2347ace8fdc7c668403c0e9697/core/definitions.mk
#1
2
Usually such toc file will be auto generated during fullbuild, but if it is missing when you build single module you can manually generate the classes.dex.toc with the following command:
通常这样的toc文件将在fullbuild期间自动生成,但如果在构建单个模块时丢失,则可以使用以下命令手动生成classes.dex.toc:
dexdump2 classes.dex >> classes.dex.toc
If you want to know the details, please read the sourcecode of android build system: _transform_dex-to-toc
https://android.googlesource.com/platform/build/+/f972a4a980660d2347ace8fdc7c668403c0e9697/core/definitions.mk
如果您想了解详细信息,请阅读android构建系统的源代码:_transform_dex-to-toc https://android.googlesource.com/platform/build/+/f972a4a980660d2347ace8fdc7c668403c0e9697/core/definitions.mk