今天studio打开资源文件里的内容时出现了问题, 全被ButterKnife和dagger占领了, layout, xml, anim, strings, colors等等, 一个都不剩, 全军覆没了, 注意, 该问题只在studio中存在问题, 在本地文件管理里打开对应的文件正常, 截图如下:
解决方案在最后
解决方案在最后
解决方案在最后
// 资源目录截图:
// 布局内容截图
这里提出错误内容:
// Generated code from Butter Knife. Do not modify!
package moblieoffice.elong.com.moblieoffice.view.communicate.fragment;
import butterknife.Unbinder;
import butterknife.internal.Finder;
import butterknife.internal.ViewBinder;
import java.lang.Object;
import java.lang.Override;
public final class BlocFragment_ViewBinder implements ViewBinder<BlocFragment> {
@Override
public Unbinder bind(Finder finder, BlocFragment target, Object source) {
return new BlocFragment_ViewBinding<>(target, finder, source);
}
}
// strings.xml
<component name="libraryTable">
<library name="Gradle: androidx.annotation:annotation:1.1.0@jar">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.1.0/e3a6fb2f40e3a3842e6b7472628ba4ce416ea4c8/annotation-1.1.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.1.0/408af38ec57369afe3fd6466e1c4bfdd5f15fc92/annotation-1.1.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.1.0/8b7bdc00eb4d998bfbc76767b098620990f2a805/annotation-1.1.0-sources.jar!/" />
</SOURCES>
</library>
</component>