‘Unresolved reference’ errors for android library module referenced in app module

Found the problem, my android library module was missing the kotlin configuration: apply plugin: ‘kotlin-android’ dependencies { implementation “org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion:<version>” } Although I used kotlin .kt files in it, it could build without and also Tools -> Kotlin -> ‘Configure Kotlin in projects’ had told me ‘All modules with Kotlin files are configured’

how to import your own github forked library into android studio

I think the accepted answer is outdated. There is actually a really easy way to do this nowadays: jitpack.io All you need to do is. add in your root build.gradle at the end of allprojects repositories: allprojects { repositories { … maven { url ‘https://jitpack.io’ } } } Add the dependency in your app build.gradle: … Read more

Replace (or “Override”) String in Android Library Project

I have the same arrangement and this works for me as expected. The library has layout/class with this reference to a string resource: <TextView android:id=”@+id/studentSinceLabel”> The library provides a default value in its strings.xml: <string name=”studentSinceLabel”>Student Since</string> The main app has this value in its strings.xml: <string name=”studentSinceLabel”>Client Since</string> When I give a value for … Read more

Android Library Manifest vs. App Manifest

Using a Library Project means that my overall project will have two manifests — one for the library and the other for the “main” app project — and I’m not clear what goes in which or if there is some redundancy. The library project manifest is not presently used. Gradle for Android, and therefore Android … Read more