0

In Android Studio 2.3.3, I created a project and created new module (HTTP) of type Android Library. And added a java file to that module package.

While building, I am getting error like Plugin with id 'org.android.library' not found from the build.grade of that module (HTTP/build.gradle). First line of that build.gradle is having

apply plugin: 'org.android.library'

No error from app/build.gradle file.

Zoe
  • 27,060
  • 21
  • 118
  • 148
rashok
  • 12,790
  • 16
  • 88
  • 100
  • https://stackoverflow.com/questions/18153739/android-studio-plugin-with-id-android-library-not-found – IntelliJ Amiya Oct 06 '17 at 12:01
  • 2
    Possible duplicate of [Android Studio: Plugin with id 'android-library' not found](https://stackoverflow.com/questions/18153739/android-studio-plugin-with-id-android-library-not-found) – Sharath kumar Oct 06 '17 at 12:03
  • developer.android.com/studio/projects/android-library.html - It talks about converting app module to library module. Changing from com.android.application to com.android.library. But my problem was different, I created an android library but in that org.android.library was there by default. Which caused problem. – rashok Oct 09 '17 at 08:24

1 Answers1

1

Resolved after changing

apply plugin: 'org.android.library'

to

apply plugin: 'com.android.library'

rashok
  • 12,790
  • 16
  • 88
  • 100
  • 1
    https://developer.android.com/studio/projects/android-library.html - It talks about converting app module to library module. Changing from `com.android.application` to `com.android.library`. But my problem was I created an android library but in that `org.android.library` was there by default. Which caused problem. – rashok Oct 06 '17 at 12:29