Unable to resolve dependency Android Studio 3.0

前端 未结 10 489
一整个雨季
一整个雨季 2020-12-04 21:38

It\'s good to have a Updated Android Studio 3.0. But I am facing a problem with Android Studio 3.0, I just created a new project in

10条回答
  •  自闭症患者
    2020-12-04 22:20

    I had the same issue and I solved it by changing apply plugin: 'com.android.application' to apply plugin: 'com.android.library'

    Regarding my issue, it was a little bit different from yours. I have the second module with android library and from android developers page under the section "Convert an app module to a library module". My guess is that it is related to managing Manifest files inside of the architecture, so Android will know where is the main Manifest file.

    And regarding api and implementation, the answer can be found here

    The api configuration should be used to declare dependencies which are exported by the library API, whereas the implementation configuration should be used to declare dependencies which are internal to the component.

提交回复
热议问题