Problems encountered in android import module

1. Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not foundSolution

When writing programs, we often download some other people's code from gifhub to learn or download some third-party plug-ins to use. At this time, we have to import the other party's library file into our project. The problem is coming , sometimes it will prompt Error: (2, 0) Plugin with id 'com.github.dcendents.android-maven' not found This error, how to solve it. In fact, it's very simple, just add two lines of code to the build.gradle file in our project project and recompile it ( here is the build.gradle in the root directory of the project, not under the app, nor is it imported by you) under the library ).


2.Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in Proje

The problem is the maven version problem in the project. Generally, the updated version of the project's build.gradle file will be found ( here is the build.gradle in the project root directory, not under the app, nor under the library you imported ).