Android源码编译FAILED: out/target/product/generic/dex_bootjars/system/framework/arm/boot.art

aosp 编译 automotive 中遇到的问题 编译 1 [ 66% 66975/100143] AAPT2 link out/target/product/generic_x86_64/obj/APPS/CarSystemUI__auto_generated_rro_product_intermediates/package-res.apk FAILED: out/target/product/generic_x86_64/obj/APPS/CarSystemUI__auto_generated_rro_product_intermediates/pa 阅读详情
AI摘要

在Ubuntu22环境下,针对Android9的源码编译,文章介绍了如何解决因预编译优化导致的第三方jar包依赖问题。通过设置WITH_DEXPREOPT=false和在Android.mk中添加LOCAL_DEX_PREOPT:=false,可以避免特定应用的预编译优化,从而成功编译。尽管耗时两年,作者最终成功编译通过,强调了坚持不懈的重要性。

在这里插入图片描述使用的是ubuntu 22的,android版本是9

sudo make -j8 ALLOW_MISSING_DEPENDENCIES=true WITH_DEXPREOPT=false

WITH_DEXPREOPT=false是解决上面问题的
单个应用去掉预编译优化
某些应用会依赖一些第三方 jar 包,编译时如果打开了预编译优化,全编译时可能报错无法正常编译。
这时候,针对单个应用,去掉其预编译优化。
具体措施为在应用的编译文件 Android.mk 中添加 LOCAL_DEX_PREOPT := false,
意思是此应用不用预编译优化。
这样编译生成的文件没有 oat 文件,也就意味着没有被提前优化。

下面是成功的喜悦,哈哈,两年前就把源码下载好了,现在才编译通过,一定要坚持啊。never give up
在这里插入图片描述在这里插入图片描述

编译SM6225 Android14报错“You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is int” 【代码】编译SM6225 Android14报错“You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is int” 阅读详情

相关推荐

android_device_samsung_a10-twrp

三星Galaxy A10(Exynos)的恢复设备树 如何编译: export ALLOW_MISSING_DEPENDENCIES=true . build/envsetup.sh lunch omni_a10-eng make recoveryimage 内核源代码: :

编译某个模块的源代码

在含有build.sh目录中输入 source build/envsetup.sh lunch gordon_peak-userdebug 在特定包目录中输入 mma ALLOW_MISSING_DEPENDENCIES=true

yuemingxingxing的博客 448

接口调试必看:status显示canceled的3种常见原因及修复方法

本文深度解析了接口调试中status显示canceled的三种核心原因:网络层中断(如请求超时)、应用层逻辑主动取消(如请求竞态、组件卸载)以及用户交互与浏览器行为。文章提供了从诊断到修复的系统性方案,包括分析Network Timing、使用Axios CancelToken、优化请求策略与性能,帮助开发者从根本上解决这一常见问题。

bb456的博客 946

【Android】APP_ALLOW_MISSING_DEPS=true 错误

1.问题:在使用ndk r14b时,JNI编译时遇到了下面错误:....... Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop. .......2.解决方法: 在网上搜了下,不少人遇到此问题,解决方法都是回退版本,如ndk r10就可以解决问题了?但是这样的回退

9785

ISP调试工程师相关面试问题_001

Qualcomm、MTK等ISP pipeline的框架原理及算法原理,还有调试经验。

notgoodenouf的博客 3570

【PyTorch】CNN(一维卷积Conv1D)实现时间序列预测

本文介绍了一维卷积神经网络(Conv1D)在时间序列预测中的应用,展示了其基本原理及实现方式。通过合适的数据预处理和模型调参,Conv1D可以有效地捕捉时间序列数据中的模式,从而进行精准预测。

走向CTO的路上... 1185

android 库编译报错,android p make 编译lib静态库报错

如下是8.1到9.0版本编译出现问题you can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.8.1版本 make编译本地静态jar方式如下第一步LOCAL_STAT...

weixin_32742203的博客 1113

RAGFlow 系列教程 第14课:GraphRAG -- 知识图谱增强检索

RAGFlow v0.25.0深度解读了GraphRAG技术,通过构建知识图谱解决传统RAG在多跳推理问题上的局限。系统支持General GraphRAG和Light GraphRAG两种实现,包含四阶段构建流程:实体关系抽取、实体消解、社区检测和图持久化。核心代码位于rag/graphrag目录,采用LLM驱动的抽取机制,结合编辑距离和LLM确认的实体消解策略,以及Leiden社区检测算法。KGSearch模块通过多信号融合检索(实体+关系+N-hop+社区)实现高效查询。该系统将非结构化文本转化为可推

weixin_43674738的博客 112

[NDK]APP_ALLOW_MISSING_DEPS=true to allow missing dependencies

APP_ALLOW_MISSING_DEPS=true to allow missing dependencies 编译ndk 的时候,导致这种情况,原因在于ndk本地的版本比要编译的库的ndk版本高,提示有些依赖不在 可以这么解决: 1降低本地ndk 版本,但是,可能必须代价,譬如ndkr10 跟r14比较,少了c++11的写法,那么有些函数无法使用,譬如 std::to_string();等 或者, 2可以加上代码 (android.mk 或者application.mk) APP_ALLOW_MI

小马哥93的博客 7988

C++ (week6、7):Linux系统编程4:网络

Linux网络:计算机网络概述、TCP协议、Socket编程、IO多路复用机制(select、epoll)、HTTP协议、进程池、线程池、大文件网络传输问题

Edward2022的博客 1442

jieba分词

jieba

sikh_0529的博客 1万+

android p make 编译lib静态库报错

如下是8.1到9.0版本编译出现问题 you can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build. 8.1版本 make编译本地静态jar方式如下 第一步 LO...

zhuxingchong的博客 6003

基于Flink的流式数据降维实现方案

理解为何实时场景需要降维(解决维度灾难)掌握Flink流处理与降维算法的结合方式学会用Flink实现一个可落地的流式降维系统覆盖内容包括:Flink流处理基础、降维算法选择(侧重在线算法)、Flink与降维的集成方案、实战代码示例,以及工业级场景的应用经验。本文从“为什么需要流式降维”出发,用“快递分拣”的生活案例引出核心概念;接着拆解Flink流处理、数据降维的底层逻辑;然后重点讲解“在线PCA”这一适合流式场景的降维算法,并用Flink实现一个完整的流式降维管道;

AI 领航者的博客 578

Android 编译不生成odex文件(编译时不优化) LOCAL_DEX_PREOPT := false

在Android.mk中添加配置: LOCAL_DEX_PREOPT := false

dc3120的专栏 5104

R语言实现TF-IDF算法

TF-IDF算法的基本原理是,一个词在文档中的重要性与它在当前文档中的频率成正比,与它在整个文档集中的频率成反比。TF(词频)指的是一个词在文档中出现的次数,而IDF(逆文档频率)衡量的是一个词在整个文档集中的普遍重要性。通过将TF和IDF相乘,可以得到一个词的TF-IDF值,用于衡量其在文档中的重要性。TF-IDF(Term Frequency-Inverse Document Frequency,词频-逆文档频率)是一种常用的文本特征提取方法,用于评估一个词在文档集中的重要性。

CyberByte的博客 527

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

Linux 编译,Android.mk 导入第三方jar 报错(APPS android-arm) missing xxx(JAVA_LIBRARIES android-arm)

Ubuntu android.mk 中导入第三方jar 编辑报错 You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build. 以上错误通过mma编译时报出, 解决方法: 放在 include $(CLEAR_VARS) 和 include$(BUILD...

lsbsheng的博客 4565

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

android.mk中几个常见配置

WITH_DEXPREOPT := true 这个变量的使能导致system image中的所有东西都被提前优化(pre-optimized)。这可能导致system image非常大。 WITH_DEXPREOPT := true DONT_DEXPREOPT_PREBUILTS := true 这会导致那些 prebuild的app不会被提前优化(pre-optimized)

阳光玻璃杯 2万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

android make 报错FAILED: out/target/product/******/abl.elf

转自:https://www.cnblogs.com/xuewangkai/p/14385813.html Android 源码更换目录后编译失败 FAILED: out/target/product/xxxx/abl.elf 项目中把Android 10源码移动到另一个目录后编译失败, 报类似下面的错误: FAILED: out/target/product/xxxx/abl.elf 参考: https://blog.csdn.net/ngyzqf/article/details/82054329 解决

ssz_1984357949的博客 6785

android.mk & application.mk可能用到的参数详解

APP_: APP_ALLOW_MISSING_DEPS=true to allow missing dependencies 编译ndk 的时候,ndk本地的版本比要编译的库的ndk版本高,提示有些依赖不在,除了提升版本以外,还可以这么解决: 在android.mk 或者application.mk上加上APP_ALLOW_MISSING_DEPS :=true APP_S...

liuxin000619的专栏 661

Android 第一次开机速度优化

现在很多Android项目都需要预装很多apk。 主要在/system/app,/system/priv-app/,/system/vendor/app等目录下。 预置很多应用的结果就是,第一次开机的时候systemService.java 会调用PackageManagerService.java对这几个目录下的apk多dexopt的优化,生成oat文件。apk越多,首次开机的时间也就越长,导致第一次开机需要5-6分钟,不利于用户体验。 对于这些应用,我们可以对其进行odex优化: 一、在dev.

时光 4370

Android PRODUCT_COPY_FILES导致的编译错误

昨天研究Android的Makefile,想要实现拷贝文件功能。上网查资料,查到了可以用PRODUCT_COPY_FILES这个来弄,然后就照着网上的方法这样搞了一把。结果发现还是不行,而且把之前的PRODUCT_COPY_FILES给改动了,还知道怎么还原。这下可好,想要再编译整个ics,就一直给我报错。 The following variables have been changed: P

zs_pro_popper的专栏 9542

APP_ALLOW_MISSING_DEPS :=true

Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) 1.问题:在使用ndk r14b时,JNI编译时遇到了下面错误: ....... Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop. ....... 1 2 3 2.解决方法: 在网上..

u010029439的博客 1695
上一篇: Android webview Anr com.android.webview.chromium.WebViewChromium.onDraw(WebViewChromium.java:169
下一篇: W Failure to open libjavacore.so, try next. 华为真机崩溃问题。
zhouzhihao_07
博客等级 码龄13年 108粉丝 85原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值