textView.setText() 的时候报错 android.content.res.Resources$NotFoundException: String resource ID #0x0

RK3588 部署 YOLO26 目标检测:从环境搭建到 NPU 推理 采集图像(500+ 张,覆盖不同光照和角度)→ 筛选(删除模糊、无目标的图像)→ LabelImg 标注(选择 YOLO 格式)→ 划分 train:val:test = 7:2:1labelImg├── train/├── val/nc: 3类别顺序必须与 LabelImg 标注时一致。YOLO26 在 RK3588 上的部署流程是 PC 端训练 → ONNX 导出(opset=11)→ RKNN 转换(INT8 量化)→ 板端推理。 阅读详情
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime: FATAL EXCEPTION: main
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime: Process: tech.androidstudio.handlerdemotimer, PID: 22891
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime: android.content.res.Resources$NotFoundException: String resource ID #0x0
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at android.content.res.Resources.getText(Resources.java:274)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at android.widget.TextView.setText(TextView.java:4128)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at tech.androidstudio.handlerdemotimer.MainActivity$1.handleMessage(MainActivity.java:30)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5310)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)

03-16 21:41:42.466 22891-22891/tech.androidstudio.handlerdemotimer E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)


mainHandler=new Handler(){
    @Override
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        int what = msg.what;
        switch (what){
            case 1:
                int arg1 = msg.arg1;
                Log.d("Kodulf","Handler arg1="+arg1);
                Log.d("Kodulf","TestView  ="+mTextView.getText().toString());
                mTextView.setText(arg1);
                break;
        }
    }
};

原因分析:因为设置的是setText 里面应该是String 类型的,而arg1 是int 类型的

解决方法:将int 类型的arg1转换为String 类型的.

mainHandler=new Handler(){
    @Override
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        int what = msg.what;
        switch (what){
            case 1:
                int arg1 = msg.arg1;
                Log.d("Kodulf","Handler arg1="+arg1);
                Log.d("Kodulf","TestView  ="+mTextView.getText().toString());
                mTextView.setText(String.valueOf(arg1));


                break;
        }
    }
};


22h2版本的win10安装Docker Desktop时页面空白 摘要:Windows10 22H2系统重装Docker时出现安装界面卡死问题,通过管理员CMD执行静默安装命令解决。命令指定了WSL-2后端及多个自定义数据存储路径(安装目录、Hyper-V数据、Windows容器数据、WSL数据),安装需等待几分钟。最终验证安装成功。 阅读详情

相关推荐

变色龙哈希函数 Chameleon Hash 可变型区块链

哈希函数 Hash: 众所周知,区块链有着极其优秀的安全性就是因为其充分使用了哈希函数。 哈希简单用一句话来讲,就是:将任意长度输入的字串可转换成一个固定长度的字串,通过原始字串可以很容易地算出转换后的字串,通过转换后的字串很难还原出原始字串。 哈希函数特征: 1. 对于任意m作为输入,得到输出的结果,很难找到另一个输入m'  (m'不等于m),使得m'的Hash结果也为同样的输出

新手村 1万+

cocos2d-x安卓调试 android.content.res.Resources$NotFoundException: String resource ID #0x0

做Android应用开发的朋友有时候会遇到这样的Bug,,  android.content.res.Resources$NotFoundException: String resource ID #0x0 找不到资源文件ID #0x0 原因分析如下: 遇到这种情况,很有可能是把一个int型业务数据的 设置setText()或者类似的方法中, 这样Android系统就会主动去资源文件当中寻找

zwcwu31的专栏 1177

MCGS 和 200SMART 时间同步

在实际应用中,PLC经常会因为断电原因,导致时间不准确。假设我们设置了一个投加泵,每天8-18点投加。屏幕上显示的时间和PLC内部的时间,很可能不一样。所以需要在触摸屏上读取PLC的时间,并且提供设置功能。

mmxxoo_xxmmp的博客 1542

android:android.content.res.Resources$NotFoundException: String resource ID #..

做Android应用开发的朋友有时候会遇到这样的Bug,, android.content.res.Resources$NotFoundException: String resource ID #0x0找不到资源文件ID #0x0 原因分析如下: 遇到这种情况,很有可能是把一个int型业务数据的 设置setText()或者类似的方法中, 这样Android系统就会主动去资源文件当中寻找...

weixin_30314813的博客 269

智能车竞赛卡丁快跑组:自动驾驶与人车交互技术实战解析

本文深入解析了智能车竞赛卡丁快跑组的技术核心,重点探讨了自动驾驶与人车交互两大模块的实战方案。文章详细拆解了从环境感知、路径规划到语音识别、命令执行的完整流程,并分享了基于单片机平台的调试心法与赛场经验,为参赛者提供了一套从零开始、分步攻坚的系统性备赛指南。

f0g1h2的博客 1194

基于单片机的继电器参数测试系统设计

由于原有测试系统在参数设置上过于单一,在对继电器测试过程中需要多次进行器件连接,导致对其测试准确度下降,会造成继电器的二次损伤,基于单片机研究继电器参数测试系统的设计方法。在硬件设计上,构建二级模式集散控制框架,利用单片机进行数据采集和处理,满足实时继电器参数数据的同步控制;设计双极性反向比例输出电路,分别利用电极电阻对继电器两侧电压进行放大,实现继电器实时电压的检测。实验结果:以两组类型断电器为测试对象,分别连接示波器进行真实数据采集,在本文系统的应用下所得参数测试结果,与真实的数据相一致,具有实际应用效

weixin_45905610的博客 1449

解决:android.content.res.Resources$NotFoundException: String resource ID #0x0

注意字段所需数据类型

走马川行雪的博客 5743

解决Windows 10安装语言包时遇到的0x800F0954错误

在安装Windows 10操作系统的语言包时,如果遇到错误代码0x800F0954的提示,这无疑会让许多用户感到困惑和无助。这个错误通常意味着在安装过程中遇到了一些阻碍,导致无法正常完成语言包的安装。本文将为大家详细解析这个错误代码0x800F0954,并提供一系列有效的解决方法,帮助大家顺利安装所需的语言包。

nntxthml的博客 3805

android.content.res.Resources$NotFoundException: Resource String id #0x0

android 运行中发生异常 文中说找不到String资源#0x0,于是解决办法是去R文件中找值为#0x0的项。结果当然是找不到。(R文件在build->generated->source->r->包名->R) 最后通过注释掉可能出错的行排查出结果。 原来是当TextView对象中的setText()传入int值时,TextView对象会认为传入的是资源文件的...

djshichaoren的专栏 5712

用AI助手Cursor轻松自动生成流程图

通过 Cursor + Mermaid,我们可以快速、准确地自动生成流程图,上面演示的例子部分流程图可能比较丑,我们可以通过流程图软件导入Mermaid代码,然后手动进行微调就可以了,如果你对美观要求不是特别多,可以直接用,这将极大地提升代码可视化和架构设计的效率。

呱牛 Just do IT 1955

海康工业相机触发模式详解:软触发 vs 外触发,在C#里如何选与用?

本文深入解析海康工业相机的软触发与外触发模式,详细比较两者的特性差异、适用场景及C#实现方法。通过海康SDK配置指南和实战代码示例,帮助开发者掌握工业相机触发模式的选择与优化技巧,提升自动化检测系统的精确性和可靠性。

weixin_42635064的博客 578

android.content.res.Resources$NotFoundException

android.content.res.Resources$NotFoundException Resource ID #0x0 com.sh.sdk.shareinstall.helper.GetWebGLInfo.(GetWebGLInfo.java:42) 该异常表示找不到资源ID 。 [解决方案]:出现这个异常的原因有很多,具体原因可以参考Exception Message的内容,建议检查...

陈言必行 -- Unity游戏开发领域优质博主 3874

C#身份验证黑科技:用量子级加密与多维防御矩阵构建坚不可摧的用户管理系统!

某金融系统因身份验证漏洞导致200万用户数据泄露,量子级防御可将攻击面缩小99.99%。

墨夶的博客 358

android.content.res.Resources$NotFoundException: String resource ID #0x1 错误

在开发的过程中我们会遇到如下的错误:原因是public final void setText(@StringRes int resid) { setText(getContext().getResources().getText(resid)); }TextView 有个setText(int reid) 方法,如果我们从网络上获取到的数据是int 不是String 然后

小北的博客 1万+

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

android.content.res.Resources$NotFoundException: String resource ID #0x4 ,Android开发 setText错误

Android开发,常见报错: android.content.res.Resources$NotFoundException: String resource ID #0x4 主要原因是因为这样: @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { ...

weixin_43066097的博客 592

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

android.content.res.Resources$NotFoundException: String resource ID #0x0

项目场景: android TextView使用setText()方法报错: android.content.res.Resources$NotFoundException: String resource ID #0x0 问题描述: android TextView使用setText()方法报错: android.content.res.Resources$NotFoundException: String resource ID #0x0 原因分析: 当调用setText()方法时,如果传入的参数是in

wangyue033的博客 2337

深度学习工具包 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&#39;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(&#39;DeepLearnToolbox&#39;));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(&#39;state&#39;,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&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,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 = &#39;sigm&#39;;%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, &#39;Too big error&#39;);```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(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;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)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;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, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% 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&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 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, &#39;Too big error&#39;);```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(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % 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, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % 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, &#39;Too big error&#39;);%% 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(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % 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, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【Android错误1000例】“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误

Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误 一般情况下都是类型转化错误导致的 比如说资源文件里面的setText方法 当调用setText()方法时如果传入int型是不会被当成内容而是resourceID来使用! 所以报错!setText方法需要传入string类型的,如果是Int 就会报错 解决方法:TextView.setText("" + arg) 转为String传入即可解

4602

android.content.res.Resources$NotFoundException: String resource ID #0x0报错

android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:444)报错 1.完整报错如下: 2021-04-28 15:37:51.226 1376-1376/com.example.myapplication1 E/.myapplication: Invalid ID 0x00000000. 2021-04-

weixin_44794371的博客 1190

android.content.res.Resources$NotFoundException: String resource ID #0x1

之前忘了记录这个错误,今天又遇到了。唉,人不能纵容自己犯懒,遂记录之。 错误:android.content.res.Resources$NotFoundException: String resource ID #0x1 原因:一般发生在参数 int resId 错误,你把String赋值给int的resId,所以编译器找不到正确的resource于是报错。 最简单的例子,...

dibe49481448的博客 118

Android “android.content.res.Resources$NotFoundException: String resource ID #0x2” 错误

Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误 当调用setText()方法时如果传入int型是不会被当成内容而是resourceID来使用! 所以报错! 解决方法:TextView.setText("" + str) 转为String传入即可 ...

清叶 的专栏 1919

AndroidStudio中提示:android.content.res.Resources NotFoundException: String resource ID 0x

场景 在Android Studio中对TextView调用setText时传入的是Int类型的值,就会提示: android.content.res.Resources NotFoundException: String resource ID 0x 博客:https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 将int数据添加一个+""即可 mText.setText(mEnti.

BADAO_LIUMANG_QIZHI的博客 1066

Android Resources$NotFoundException: String resource ID #0x1

今天写一个新界面,需要从其他界面通过intent传来参数,就先拿到之后通过TextView的setText显示来看看传参是否正确,写法:TextView.setText(arg) (arg是int型),然后就玩命报错  “android.content.res.Resources$NotFoundException: String resource ID #0x1”,一直不知道怎么回事,看过API

公孙轩辕,一眼千年 2838

Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误

Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误 Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误 当调用setText()方法时如果传入i

Ziv的博客 1132

setText()报错:android.content.res.Resources$NotFoundException: String resource ID #0x1

报错:android.content.res.Resources$NotFoundException: String resource ID #0x1 一直在这里犯错,记录下 将int值赋值给:text 报错: 原因: 最简单的例子,检查一下你的Toast.makeText()啊textView.setText啊之类的函数,这种函数通常有几个重载,如: textView.setText(CharSequence text); textView.setText(int resId); … 如果不小心将一个in

星海浮沉的成长路 266

[已解决]findviewbyid android.content.res.Resources$NotFoundException

setText的时候报错,显示android.content.res.Resources$NotFoundException, 这个是因为setText的时候里面的是数字了,而数字setText默认的认为就是id了,所以例如我这里是setText(2),那么它会去找2的这个id的,而不是直接设置文字为2 应该是setText("2");这样就可以了 就是说setText里面最好是字符串

Kodulf的专栏 1258

安卓运行时报错:android.content.res.Resources$NotFoundException: String resource ID #0x6aeca8

问题说明: 运行时报错:Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x6aeca8 问题原因: 看看是不是TextView.setText()中,setText中放置了int型数值了。 解决办法: 将其他数据类型转成String,放置进TextView就可以了。 te...

王小二的博客 310
上一篇: SlidingPaneLayout,DrawerLayout,ActionBar,NavigationView 详解 <三> NavigationView,DrawerLayout 结合ActionB
下一篇: Android 中调用线程thread.stop 方法后报错,Deprecated Thread methods are not supported.
千雅爸爸
博客等级 码龄18年 292粉丝 639原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值