build.gradle

Could not resolve android.arch.lifecycle:extensions:1.1.0

狂风中的少年 提交于 2020-08-06 17:33:32
问题 I am trying to add lifecycle:extensions to my project but i can not make it work . Each time it shows error . Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve android.arch.lifecycle:extensions:1.1.0. I have already read several threads but could not make it work by the answers given there. Project level gradle is: buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' } } allprojects { repositories {

Could not resolve android.arch.lifecycle:extensions:1.1.0

六眼飞鱼酱① 提交于 2020-08-06 17:33:04
问题 I am trying to add lifecycle:extensions to my project but i can not make it work . Each time it shows error . Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve android.arch.lifecycle:extensions:1.1.0. I have already read several threads but could not make it work by the answers given there. Project level gradle is: buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' } } allprojects { repositories {

Getting Androidx library issue even though its not enabled in android project

▼魔方 西西 提交于 2020-08-06 06:09:51
问题 I am getting this issue This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry. The following AndroidX dependencies are detected: androidx.annotation:annotation:1.1.0 I keep getting this error and I have been searching the internet to figure out what is wrong and I cannot find anything "And I can't use Androidx library in my project " 回答1: In many of the answers on SO on this problem it

Android resource linking failed AAPT: unknown option '--no-proguard-location-reference'

我们两清 提交于 2020-08-05 04:22:11
问题 Getting issue when trying to build apk. Android studio version - 4.0 (recently updated AS) This process shows the error in build - :app:processDebugResources Android resource linking failed AAPT: unknown option '--no-proguard-location-reference'. aapt2 link [options] -o arg --manifest arg files... Options: -o arg Output path. --manifest arg Path to the Android manifest to build. -I arg Adds an Android APK to link against. -A arg An assets directory to include in the APK Trying to build apk by

How to convert Java Gradle project to Dynamic Web Project?

独自空忆成欢 提交于 2020-08-02 04:13:48
问题 I am following this article https://www.linkedin.com/pulse/building-jax-rs-project-eclipse-gradle-neeraj-malhotra On how to build a JAX-RS project in Eclipse with Gradle I am using Eclipse Java EE IDE for Web Developers. Version: Oxygen.2 Release (4.7.2) Build id: 20171218-0600 My target runtime is WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) my gradle build file apply plugin: 'war' apply plugin: 'eclipse-wtp' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies {

How to convert Java Gradle project to Dynamic Web Project?

▼魔方 西西 提交于 2020-08-02 04:12:05
问题 I am following this article https://www.linkedin.com/pulse/building-jax-rs-project-eclipse-gradle-neeraj-malhotra On how to build a JAX-RS project in Eclipse with Gradle I am using Eclipse Java EE IDE for Web Developers. Version: Oxygen.2 Release (4.7.2) Build id: 20171218-0600 My target runtime is WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) my gradle build file apply plugin: 'war' apply plugin: 'eclipse-wtp' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies {

Program type already present: com.google.common.util.concurrent.ListenableFuture

拟墨画扇 提交于 2020-07-18 10:38:31
问题 I have just converted my project to androidx and am now getting the "Program type already present" error for com.google.common.util.concurrent.ListenableFuture . I have looked through multiple stackoverflow solutions and some of the Gradle documentation and still can't get it to work. The problem is that there are two versions of ListenableFuture brought in by Gradle in these modules: Gradle: com.google.quava:quava:23.5jre@jar Gradle: com.google.guava:listenablefuture:1.0@jar I would guess

A gradle task take long time to execute and doesn't produce any response. I want to execute that task and move on to next task

时光毁灭记忆、已成空白 提交于 2020-07-10 08:43:44
问题 Inside build.gradle file: task updateJson(){ //updates a json file } task Conn(type: NodeTask, dependsOn: updateJson){ script = file("connect.js") } yarn_test.dependsOn Conn Console Output: :updateJson :Conn Before config :: Connect.js has been executed. Your app is now listening to port 6062. <===========--> 85% EXECUTING > :Conn After that, the yarn_test doesn't start. The task Conn is used to establish a connection and it doesn't return any execution response/result. It only enables

How to synchronize build variants among apps

淺唱寂寞╮ 提交于 2020-07-10 08:31:39
问题 I am working on a project that contains multiple applications. Several of them contain the same flavors. The same values on a flavor dimension, precisely. I would like to have their value synchronized, if possible automatically. Otherwise, I would like it to show there is a conflict. To summarize the situation, I would like the build variant selection pane to behave for unrelated applications of the same project the same as it works for module being a dependency of an app. How can I achieve

Verbose build logs from Android Studio

风流意气都作罢 提交于 2020-07-08 12:58:08
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure