Android Java源Java文件以png文件形式打开 [英] Android Java source java files opens as png files something
问题描述
今天,Android Studio开始表现异常.源Java文件打开 作为png文件的东西.我可以构建和运行该应用程序,如果我在文件系统中查找,则Java文件看起来还可以.我确实使缓存无效并重新启动,我删除了.idea并构建了文件夹,但没有任何更改.奇怪的是,我可以调试运行该应用程序.如果要更改Java文件,则必须像记事本一样打开并保存,然后再次构建项目
Today Android Studio started to behave strange. Source java files opens as png files something. I can build and run the app and if I look in the file system the java files looks ok. I do Invalidate cache and restart, I delete .idea and build folders but no change. The strange thing is I can debug run the app. If I want to change java files I have to open like Notepad and save then build project again
Android Studio中必须有一些文件/设置可以控制此操作.我删除了项目ide并进行了折叠构建,但没有更改,我可以在Android Studio中的哪个位置重置它以开始正常工作?
There must be some file/setting in Android studio that control this. I delete the project ide and build folded but no change, where in Android Studio can I reset this to start working normal?
推荐答案
我找到了适合我的解决方案. 我不得不将每个Java源文件和所有xml文件打开到文本编辑器(Notepad ++)中,并进行一些更改,然后将文件保存回原始位置.
I found a solution that worked for me. I hade to open every java source file and all xml files into a text editor(Notepad++) and change something then save the file back to origin.
现在Android Studio可以正常检测所有文件
Now Android Studio detect all files as normal
这篇关于Android Java源Java文件以png文件形式打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!