2

The Class com.example.bottomnav.ClientBottomNav is present in the project still in the android Manifest it shows the following error-

Class referenced in the manifest, com.example.bottomnav.ClientBottomNav, was not found in the project or the libraries  Unresolved class 'ClientBottomNav' 

As you can see in the image, the project contains all the neccessary classes. image

Mikalai Lushchytski
  • 1,563
  • 1
  • 9
  • 18
Saheel Sapovadia
  • 2,755
  • 3
  • 11
  • 22

1 Answers1

1

It is very probable that the package defined in the manifest doesn't match the one you have in the project, so as you are using just a reference to the class name is not able to resolve it. Check the tag "package" at the top of your manifest.

You should have something like:

    <?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" >

Also you might try to set the full path in the activity declaration like:

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

Also, make sure that you don't declare fragments in the manifest, only activities have to be declared.

cdiazmo
  • 94
  • 1
  • 4
  • i tried both the methods, neither of them worked for me. Is there any other way? – Saheel Sapovadia Oct 11 '20 at 03:53
  • Can you post in a github gist your whole manifest, and the class declaration of the failing classes? such "class ClientBottomNav extends Activity {}" – cdiazmo Oct 11 '20 at 18:18
  • same issue @cdiazmo, could you please check ? https://stackoverflow.com/questions/70683592/missingclass-referenced-class-in-the-manifest-was-not-found-in-the-project-or – AlexUA Jan 12 '22 at 14:49