Skip to content Skip to sidebar Skip to footer

Package Does Not Exist When Using Separate App As A Dependency

I'm trying to compile an App utilising a separate App as a dependency but when I compile referencing modules from this library I see several 'error:package does not exist' and 'err

Solution 1:

The buildTypes section should not be in library build.gradle file.

Solution 2:

You cannot have two gradle scripts using the com.android.application plugin at the same time. Change the dependency project to apply the 'library' plugin.

If that doesn't do it, change the targetSdkVersion of your dependency to that of your core project.

Solution 3:

If you are using a Android library module as a dependency (i.e. mylib), then make sure in your app.iml file that you see the following line toward the end of the file:

    <orderEntry type="module"module-name="mylib" exported="" />

Solution 4:

Solution 5:

I had a similar issue posted here

But I got it resolved using @Doge's suggestion, I converted the dependency android project to library project.

Thanks.

Post a Comment for "Package Does Not Exist When Using Separate App As A Dependency"