0

After Gradle build getting Failed to resolve : runtime in android Studio even not using/added any architecture related component.

(incomplete) logcat:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Amit
  • 43
  • 6
  • post your logcat log. – Bhupat Bheda May 28 '18 at 09:38
  • org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) – Amit May 28 '18 at 10:00
  • https://stackoverflow.com/questions/37583875/org-gradle-api-tasks-taskexecutionexception-execution-failed-for-task-apptra refer this may help to you. – Bhupat Bheda May 28 '18 at 10:11
  • Possible duplicate of [Gradle build tool cannot find play-services-tasks.aar? Why?](https://stackoverflow.com/questions/50562212/gradle-build-tool-cannot-find-play-services-tasks-aar-why) – Floern May 28 '18 at 13:26
  • Thank@Floern it works – Amit Jun 16 '18 at 15:16

1 Answers1

0

I Added maven { url 'https://maven.google.com' } as first entry in allprojects/repositories in top level build.gradle

such as this:

allprojects {
    repositories {
        maven { url 'https://maven.google.com' }
        google()
        maven { url "https://jitpack.io" }
        jcenter()
    }
}
Saeed
  • 3,294
  • 5
  • 35
  • 52