关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
http://blog.csdn.net/xiaoyuan511/article/details/17114761
关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
- 标签:
- android /
- Dialog /
- 报错
- 1284
The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments (String, new View.OnClickListener(){})
Here is your solution, you did a silly mistake there buddy.
It should not be
.setNegativeButton("Don't Remind", new OnClickListener()
It should be
.setNegativeButton("Don't Remind", new DialogInterface.OnClickListener()
只要这样写,就不报错了!本人水平有限,也不知道什么原因,希望对你能有帮助!
关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert相关推荐
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i ...
- Flutter的setState的使用注意事项以及报错The method ‘setState‘ isn‘t defined for the type
错误描述 今天在写一个更换头像的功能时,为了刷新选择的头像,想使用setState去刷新头像,结果报错了. 报错如下: The method 'setState' isn't defined for ...
- 【错误记录】Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. ② | 升级 Gradle 版本 )
文章目录 一.报错信息 二.解决方案 解决 Could not determine java version from '11.0.8'. 问题 , 有两种方案 , 方案一 : Android Stu ...
- 【错误记录】Android 应用运行报错 ( You need to use a Theme.AppCompat theme (or descendant) with this activity. )
文章目录 一.报错信息 二.解决方案 一.报错信息 运行 Android 应用时 , 报错 ; 报错信息如下 : 2021-08-04 21:04:12.067 26338-26338/com.exa ...
- android 编译报错,android avc 编译报错neverallow问题查找
android avc 编译报错neverallow问题查找 2020年08月11日 | 萬仟网移动技术 | 我要评论 在修改avc后,有时候编译会报错neverallow.这个具体是在什么地方定义的 ...
- android pdfview,android pdfview运行报错,求大神过来解答。跪谢
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 RT, MainActivity代码如下: PDFView pdfView = (PDFView) findViewById(R.id.pdfview); ...
- Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin
Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin 这个问题自己大致在 ...
- SAP RETAIL WA03 基于分配表创建PO报错 - No work list could be selected –
SAP RETAIL WA03 基于分配表创建PO报错 - No work list could be selected – 1, 执行事务代码WA03,输入分配表4,回车进入如下界面, 选中item ...
- 【错误记录】Android Studio 编译报错 ( SDK location not found )
文章目录 一.报错信息 二.解决方案 一.报错信息 Android Studio 编译报错 : 首次打开别人的项目 , 经常性的报错 ; Could not determine the depende ...
- 【错误记录】Android Studio 编译报错 ( A problem occurred starting process ‘command ‘ninja.exe‘ ‘ )
文章目录 一.报错信息 二.解决方案 一.报错信息 Android Studio 编译报错 : FAILURE: Build failed with an exception.* What went ...
最新文章
- yolact实时分割
- pgjdbc源码分析
- Apache Hadoop 入门教程第一章
- Leetcode-区域和检索 - 数组不可变(303)
- kafka数据文件.log
- Linux驱动编程 step-by-step (七) 并发 竞态 (信号量与自旋锁)
- Int与String之间相互转换
- 新闻网大数据实时分析可视化系统项目——7、Kafka分布式集群部署
- 落在我手里,今天你能嫁出去算我输!
- JAMA子刊:20来岁就要控制体重!分析超8万中国人数据发现,成年到中年体重每多增加10斤,老了之后死亡风险增加10%...
- ruby 查看csv文件_如何使用CSV和Ruby构建终端游戏
- Python爬虫必备技能,Xpath提取数据规格详解
- 第四次作业——测试作业
- Linux命令之目录和文件操作
- gradle构建springboot项目瘦身,外部依赖jar的终极方法
- DM6467T开发板领航——开发环境
- c++获取ctrl+v内容_WPS表格——CTRL快捷键的用法
- 忘记压缩包密码 python 暴力破解rar密码
- 计算机键盘快速指南,MagicBook热键/功能键切换指南,快捷键介绍
- 错误Could not locate executable null\bin\winutils.exe in the Hadoop binaries的解决方案
热门文章
- 一道简单的百度笔试题
- 米兔机器人恐龙拼图手册_米兔积木 篇三:我与小米积木有个约会之米兔机器人平衡车版...
- 骨架法matlab,matlab中轴线算法骨架
- 2023北京国际老年产业博览会/养老产业展/养老服务业展
- Shopee开店首站有哪些站点?虾皮入驻规则
- 自己封装特定的Windows系统镜像
- 什么是搜索引擎???搜索引擎的介绍
- postgres中的中文分词zhparser
- JAVA面大厂简历怎么写_大厂程序员来谈一谈要如何写简历!!(附简历模板)...
- 仿百度文库解决方案——利用FlexPaper显示Flash(SWF)