CJR*_*CJR 1 android android-layout android-fragments
我的布局文件中出现错误:
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.myapp.MainActivity$PlaceholderFragment">
<!-- Some stuff here -->
</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)
它在这一行给了我一个错误:
tools:context="com.myapp.MainActivity$PlaceholderFragment"
Run Code Online (Sandbox Code Playgroud)
错误如下:
未解析的类“PlaceHolderFragment”
Android XML 文件内的有效资源引用。
我可以构建我的应用程序并运行它,但我在 Stackoverflow 和其他地方没有找到任何有助于解决我的错误的内容。有人知道我为什么会收到此错误吗?
| 归档时间: |
|
| 查看次数: |
3476 次 |
| 最近记录: |