Skip to content Skip to sidebar Skip to footer

Packages From Library Module Not Found In Main Module

I got a project which I imported from Eclipse to Android Studio. In Eclipse everything worked well. It contains a main module (a project in Eclipse) which uses packages from a libr

Solution 1:

After fighting with the same issue for hours here is what worked for me.

I've created a fresh project with blank activity, added a library module with a dummy class, defined the dependency. Verified that it works by importing the dummy class in the app. Then I copied all my relevant code from the real project.

My thinking is that it was probably issue with IDE's iml files, since starting from scratch and copying stuff over worked.

Solution 2:

See properly source file contains both java folder and res folder,add java files in java packages and res in res folder.Add Activity name in Manifest file see here ,add necessary libraries files in Gradle file.Clean and rebuild the project in the Android studio.

https://developer.android.com/guide/topics/manifest/manifest-element.html

Solution 3:

Maybe you can check if the library's AndroidManifest has defined the package correctly, like:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"package="com.pointer.linphone">

Post a Comment for "Packages From Library Module Not Found In Main Module"