Java 在项目或库中找不到清单com.example.bottomnav.ClientBottomNav中引用的类

Java 在项目或库中找不到清单com.example.bottomnav.ClientBottomNav中引用的类,java,android,android-studio,Java,Android,Android Studio,类com.example.bottomnav.ClientBottomNav在项目中仍然存在于android清单中,它显示以下错误- Class referenced in the manifest, com.example.bottomnav.ClientBottomNav, was not found in the project or the libraries Unresolved class 'ClientBottomNav' 如图所示,项目包含所有必需的类。 清单中定义的包很可

com.example.bottomnav.ClientBottomNav
在项目中仍然存在于android清单中,它显示以下错误-

Class referenced in the manifest, com.example.bottomnav.ClientBottomNav, was not found in the project or the libraries  Unresolved class 'ClientBottomNav' 
如图所示,项目包含所有必需的类。

清单中定义的包很可能与项目中的包不匹配,因此仅使用对类名的引用无法解析它。 检查清单顶部的“包裹”标签

您应该有如下内容:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.bottomnav"
    android:versionCode="1"
    android:versionName="1.0" >

您还可以尝试在活动声明中设置完整路径,如:

<activity android:name="com.example.bottomnav.ClientBottomNav" 
android:label="ClientBottomNav">


另外,请确保不在清单中声明片段,只需声明活动。

我尝试了这两种方法,但都不适用于我。还有其他方法吗?你能在github中发布你的全部清单,以及失败类的类声明吗?这样的“类ClientBottomNav扩展活动{}”