遇到的android studio崩溃信息整理

1. eclipse adt 转移项目到studio 会出现中文乱码问题

           使用EditPlus  或者 NotePad++进行转码  UTF-8 无 BOM 编码格式

2.Android 修改包名无法运行activity class does not exist

           删除app包内build下workspace.xml      (.idea下)

3.onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.

在activity中可以直接使用 getLayoutInflater().inflate 的方式

在Fragment中要用getLayoutInflater().from(context).inflate

     

发布了30 篇原创文章 · 获赞 10 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_36029400/article/details/73611707
今日推荐