Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class referenced in the manifest was not found in the project or the libraries

Recently I tried to remove all lint issues and in the manifest appeared an issue :
"Class referenced in the manifest, com.octo.android.robospice.JacksonSpringAndroidSpiceService, was not found in the project or the libraries"

    <service
        android:name="com.octo.android.robospice.JacksonSpringAndroidSpiceService"
        android:exported="false" >
    </service>

This is a maven dependency and is also included in the build.gradle file :

dependencies {
  ...
    compile 'com.octo.android.robospice:robospice:1.4.11'
    compile 'com.octo.android.robospice:robospice-spring-android:1.4.11'
   ...
}

What else could be done to resolve this lint warning or do I have to suppress it?

like image 769
Clean Devs Avatar asked Dec 17 '14 13:12

Clean Devs


3 Answers

go to file->Invalidate cashes and restart

it works for me

like image 148
Mayukh P V Avatar answered Oct 19 '22 13:10

Mayukh P V


I know it's an old question but I ran into a similar issue today. The problem was in the name of the service. If you had the class in your project, then the name should be:

  <service
        android:name="YOUR_PACKAGE.YOUR_CLASS_NAME"
        android:exported="false" />
like image 44
ybloodz Avatar answered Oct 19 '22 12:10

ybloodz


In my case I forgot to add the package on top in kotlin file

package com.user.examplephone;
like image 10
R7G Avatar answered Oct 19 '22 11:10

R7G