No enclosing instance of the type RegisterActivity is accessible
来源:互联网 发布:淘宝假货改进 编辑:程序博客网 时间:2024/05/18 11:00
【问题描述】
在RegisterFragment中需要跳转到ChoseCountryActivity。
intent.setClass(RegisterActivity.this, ChoseCountryActivity.class);
错误提示:No enclosing instance of the type RegisterActivity is accessible
【解决方法】
intent.setClass(getActivity(), ChoseCountryActivity.class);
0 0
- No enclosing instance of the type RegisterActivity is accessible
- No enclosing instance of type * is accessible.
- No enclosing instance of type is accessible.
- - No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing in
- No enclosing instance of type Monster is accessible. Must qualify the allocation with an enclosing i
- No enclosing instance of type ChuangKou is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type X is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type X is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing inst
- No enclosing instance of type Outer is accessible. Must qualify the allocation with an enclosing ins
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing insta
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instanc
- CoreData的增删改查
- AlphaGo关键技术,Deep Learning(深度学习)<1>
- 数据结构(8)线性表之静态链表
- python学习笔记(6)-高级特性(二)-迭代
- 字符设备驱动
- No enclosing instance of the type RegisterActivity is accessible
- Java Web Session 登录实例
- 发现大量的TIME_WAIT解决办法
- 蓝桥杯 密码发生器
- 理解CSS3 transform中的Matrix(矩阵)
- 结合Apache和Tomcat实现集群和负载均衡
- 《C++primer第五版》第一章
- Java Web Session购物商店小实例
- python学习笔记(7)-高级特性(三)-列表生成式与生成器