Skip to content Skip to sidebar Skip to footer

Jar Libraries Not Being Detected

I created a fresh project in Android Studio which uses external library (JAR). I put this in modules's build.gradle: dependencies { compile files('libs/android-support-v4.jar')

Solution 1:

Android Studio currently does not automatically sync your Gradle build files with your Android Studio (.iml) files. However, version 0.1.3 added a new sync button to the toolbar that will do this manually.

It's mentioned in the second bullet point of this blog post.

There were a lot of fixes in the Gradle project import and build areas. There is now a "sync" button in the toolbar which will reimport the Gradle project state into your Android Studio project. Use this after editing your Gradle files, for example to add a library. In the future we will more automatically handle state syncing, but for now this is the simplest way to keep the IDE up to date with project structure changes made to the Gradle files.

Gradle project sync button

Post a Comment for "Jar Libraries Not Being Detected"