build.gradle

How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M?

穿精又带淫゛_ 提交于 2019-11-25 19:01:16
As mentioned here , Android M will not support the Apache HTTP API. The docs state to: use the HttpURLConnection class instead. or To continue using the Apache HTTP APIs, you must first declare the following compile-time dependency in your build.gradle file: android { useLibrary 'org.apache.http.legacy' } I have converted much of my project's usage of HttpClient to HttpURLConnection, however, I still need to use the HttpClient in a few areas. Hence, I am trying to declare 'org.apache.http.legacy' as a compile-time dependency but am getting an error in build.gradle: Gradle DSL method not found:

Android Material and appcompat Manifest merger failed

不羁岁月 提交于 2019-11-25 18:55:47
I have next grade dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'com.google.android.material:material:1.0.0-rc01' } But when I want to build app I get next log: Manifest merger failed : Attribute application@appComponentFactory value=