Building my app but it say build failed with one error - java

I am new to android studio and building my app but it say build failed with one error plz help
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file 'C:\Users\user\AndroidStudioProjects\Happybirthday1\build.gradle' line: 32
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not compile build file 'C:\Users\user\AndroidStudioProjects\Happybirthday1\build.gradle'.
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > startup failed:
13:25:49.885 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] build file 'C:\Users\user\AndroidStudioProjects\Happybirthday1\build.gradle': 32: expecting '}', found '' # line 32, column 1.
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 1 error
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
13:25:49.900 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1s

I believe you just missed a '}' in build.gradle file. Should be quite straightforward to fix.

Missed "}" in the code
build file 'C:\Users\user\AndroidStudioProjects\Happybirthday1\build.gradle': 32: expecting '}', found '' # line 32, column 1.

Related

Bintray? issue build failed

I am not an android dev i know web dev and somewhat of android studio so i got an external dev to build an app for me which i just compile in android studio and ship the apk/obb to google play all was fine in Nov but in December i made a little edit in ui but when i tried to "Make project" the build failed giving this error.
From what i read bintray is no longer used but this dev uses it can anyone help understand this error and how to fix it.
the error:
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not determine the dependencies of task ':app:dataBindingMergeDependencyArtifactsDebug'.
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.venmo.view.tooltip:tooltip:0.1.2.
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.venmo.view.tooltip:tooltip:0.1.2.
2021-12-16T00:30:13.125+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/venmo/view/tooltip/tooltip/0.1.2/tooltip-0.1.2.pom'.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/venmo/view/tooltip/tooltip/0.1.2/tooltip-0.1.2.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.faltenreich:skeletonlayout:2.0.1.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.faltenreich:skeletonlayout:2.0.1.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/faltenreich/skeletonlayout/2.0.1/skeletonlayout-2.0.1.pom'.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/faltenreich/skeletonlayout/2.0.1/skeletonlayout-2.0.1.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.facebook.shimmer:shimmer:0.5.0.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.facebook.shimmer:shimmer:0.5.0.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/facebook/shimmer/shimmer/0.5.0/shimmer-0.5.0.pom'.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/facebook/shimmer/shimmer/0.5.0/shimmer-0.5.0.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.zendesk.belvedere2:belvedere:3.0.0-RC.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.zendesk.belvedere2:belvedere:3.0.0-RC.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/zendesk/belvedere2/belvedere/3.0.0-RC/belvedere-3.0.0-RC.pom'.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/zendesk/belvedere2/belvedere/3.0.0-RC/belvedere-3.0.0-RC.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.yarolegovich:discrete-scrollview:1.5.1.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.yarolegovich:discrete-scrollview:1.5.1.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/yarolegovich/discrete-scrollview/1.5.1/discrete-scrollview-1.5.1.pom'.
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/yarolegovich/discrete-scrollview/1.5.1/discrete-scrollview-1.5.1.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.126+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.facebook.android:facebook-android-sdk:7.0.0.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.facebook.android:facebook-android-sdk:7.0.0.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/facebook/android/facebook-android-sdk/7.0.0/facebook-android-sdk-7.0.0.pom'.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/facebook/android/facebook-android-sdk/7.0.0/facebook-android-sdk-7.0.0.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.shobhitpuri.custombuttons:google-signin:1.0.0.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.shobhitpuri.custombuttons:google-signin:1.0.0.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/shobhitpuri/custombuttons/google-signin/1.0.0/google-signin-1.0.0.pom'.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not HEAD 'http://dl.bintray.com/jlmd/maven/com/shobhitpuri/custombuttons/google-signin/1.0.0/google-signin-1.0.0.pom'. Received status code 502 from server: Bad Gateway
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.squareup.picasso:picasso:2.71828.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :app
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve com.squareup.picasso:picasso:2.71828.
2021-12-16T00:30:13.127+0630 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not get resource 'http://dl.bintray.com/jlmd/maven/com/squareup/picasso/picasso/2.71828/picasso-2.71828.pom'.
More go on like this but its too long to show here
This is the gradle script
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.21'
repositories {
jcenter()
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.google.gms:google-services:4.3.10'
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
// id "org.jetbrains.kotlin.jvm" version '1.4.21'
}
allprojects {
repositories {
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
maven { url "http://dl.bintray.com/jlmd/maven" }
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username 'braintree_team_sdk'
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
}
}
maven {
url 'https://zendesk.jfrog.io/zendesk/oss-releases-local'
}
jcenter()
google()
mavenCentral()
jcenter()
}
}
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply plugin: "org.jetbrains.kotlin.jvm"
Please help we are 6 days late on our update and i just need someone to help me. fi this post is wrong or need to fix something please tell me and i will fix it.

Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process [ERROR] Cannot instantiate class

I am migrating my project to Java 15 version. We have done all the required changes and started building a maven clean install.
I am getting the below error. Tried many from google and Github other forums, nothing working.
TestNG version changes, and some plugin changes, but no luck.
Please find below the error. Can someone help...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project quarterback: There are test failures.
[ERROR]
[ERROR] Please refer to surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com....ABCTest
[ERROR] ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com...DEFTest
[ERROR] ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com...GHITest
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com...JKLTest
[ERROR] ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com...MNOTest
[ERROR] ExecutionException There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com...ABCTest
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:532)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkOnceMultiple(ForkStarter.java:405)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:321)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:266)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1314)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1159)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:932)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR] Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class com....DEFTest
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:733)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$700(ForkStarter.java:121)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:393)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:370)
[ERROR] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[ERROR] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[ERROR] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
The thing that you see the stacktrace does not necessarily mean an error in the plugin.
I think the log with Cannot instantiate class com...ABCTest is printed by your framework, TestNG. Is the TestNG reliable in JDK 15?
You can see more in the dump files with detailed errors located in target/surefire-reports.
I found similar issue in https://sqa.stackexchange.com/questions/14680/cannot-instantiate-class-error-selenium-webdriver and the root cause looks like they called the driver
driver.findElement(...)
in the constructor of the test class.
I had a very similar problem with surefire and testng and it turned out that there was an error in the constructor of the test class that had been swallowed. My solution was to surround the whole costuctor code with try/catch and log the exception manually to find the real issue.

Unresolved Reference when use Java Constants

When i tried to build, ide throw error: "Unresolved reference: X "
X is any Java constant (public static final) on (public) class Java
Can’t use:
android.os.Environment.DIRECTORY_DOCUMENTS
Build.VERSION_CODES.M
Etc
I have tried:
Invalidate Cache in Android Studio
gradlew cleanBuildCache
Clean / Rebuild
Clone project on other folder,
Etc
It’s a mixed project, Java & Kotlin
I can use static methods, like:
public static Uri getUriForFile from public class FileProvider
Etc
Error line:
10:38:23.053 [ERROR] [org.gradle.api.Task] e: C:\Users\User\AndroidStudioProjects\MyAndroidProject\app\src\main\kotlin\com\myapp\mypackage\android\PermissionsHelper.kt: (67, 66): Unresolved reference: M
I’m using:
Gradle Configuration
ext.kotlin_version = ‘1.3.10’
classpath ‘com.android.tools.build:gradle:3.2.1’
androidExtensions { experimental = true }
Software
Windows 10 Pro 10.0.17134 N/D Compilation 17134 x64
Android Studio 3.2.1 Build #Al-181-5540.7.32.5056338,build on Octubre 8, 2018
java version “1.8.0_162”
Java™ SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot™ 64-Bit Server VM (build 25.162-b12, mixed mode)
Stacktrace:
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:compileDebugKotlin'.
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Compilation error. See log for more details
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:38:23.076 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugKotlin'.
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipCachedTaskExecuter.execute(SkipCachedTaskExecuter.java:103)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:66)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
10:38:23.077 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter
Thank you #yole and #Rod_Algonquin for the help, meanwhile i was writing the questions, and answering the questions, the Rubber duck method help me, the IDE was throwing me a error "Unresolved reference", but the problem was the annotation:
#RequiresApi(Build.VERSION_CODES.M)
Because: minSdkVersion 16
I was working on PermissionsHelper.kt, I was using Activity instead of android.support.v4.app.Fragment or ContextCompat for old versions.
Sorry guys for not post the code, and the complete gradle, i wanted to do a short post, this is my fist post.
Thank yo for all the help.

Error running tests in Play Framework after migrating to 2.4.x (Java)

I just migrated from 2.3 to 2.4. The application itself seems to be working, but none of the tests will run. They all fail with the following error:
[error] Test models.TestCountry.createTheater failed: com.google.inject.ProvisionException: Unable to provision, see the following errors:
[error]
[error] 1) Error injecting constructor, java.lang.IllegalStateException: Got deeper than 5 levels while searching /home/jlei/workspace/ebor-play/target/web/classes/main/META-INF/resources/webjars
[error] at controllers.WebJarAssets.<init>(WebJarAssets.scala:21)
[error] at controllers.WebJarAssets.class(WebJarAssets.scala:21)
[error] while locating controllers.WebJarAssets
[error] for parameter 18 at router.Routes.<init>(Routes.scala:96)
[error] while locating router.Routes
[error] while locating play.api.test.FakeRouterProvider
[error] while locating play.api.routing.Router
[error]
[error] 1 error, took 2.828 sec
[error] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
[error] at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
[error] at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:321)
[error] at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:316)
[error] at play.api.Application$class.routes(Application.scala:111)
[error] at play.api.test.FakeApplication.routes(Fakes.scala:197)
[error] at play.api.Play$.start(Play.scala:89)
[error] at play.api.Play.start(Play.scala)
[error] at play.test.Helpers.start(Helpers.java:450)
[error] at play.test.WithApplication.startPlay(WithApplication.java:44)
[error] ...
[error] Caused by: java.lang.IllegalStateException: Got deeper than 5 levels while searching /home/jlei/workspace/ebor-play/target/web/classes/main/META-INF/resources/webjars
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:43)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.aggregateChildren(FileUrlProtocolHandler.java:47)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.listFiles(FileUrlProtocolHandler.java:36)
[error] at org.webjars.urlprotocols.FileUrlProtocolHandler.getAssetPaths(FileUrlProtocolHandler.java:25)
[error] at org.webjars.WebJarAssetLocator.getAssetPaths(WebJarAssetLocator.java:89)
[error] at org.webjars.WebJarAssetLocator.getFullPathIndex(WebJarAssetLocator.java:119)
[error] at controllers.WebJarAssets.<init>(WebJarAssets.scala:29)
[error] at controllers.WebJarAssets$$FastClassByGuice$$db4380e1.newInstance(<generated>)
[error] at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
[error] at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
[error] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
[error] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
[error] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
[error] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
[error] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104)
[error] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
[error] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
[error] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
[error] at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
[error] at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:321)
[error] at play.api.inject.RoutesProvider$$anonfun$2.apply(BuiltinModule.scala:67)
[error] at play.api.inject.RoutesProvider$$anonfun$2.apply(BuiltinModule.scala:67)
[error] at scala.Option.fold(Option.scala:158)
[error] at play.api.inject.RoutesProvider.get$lzycompute(BuiltinModule.scala:67)
[error] at play.api.inject.RoutesProvider.get(BuiltinModule.scala:63)
[error] at play.api.test.FakeRouterProvider.get$lzycompute(Fakes.scala:259)
[error] at play.api.test.FakeRouterProvider.get(Fakes.scala:259)
[error] at play.api.test.FakeRouterProvider.get(Fakes.scala:258)
[error] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
[error] at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
[error] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
[error] at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
[error] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
[error] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
[error] ... 44 more
[error] Failed: Total 1, Failed 1, Errors 0, Passed 0
I am using the InjectedRoutesGenerator and version 2.4.0-M3-1 of webjars-play. Let me know if there are any other details that might help!
Does anybody have any idea what might be going on?
EDIT:
Dug this up: https://github.com/sbt/sbt-web/issues/104
So seems to be a known issue. Guess I'll be trying to find a creative workaround in the meantime...
The proximate cause of the failure is that there are more than 5 levels of subdirectories under:
/home/jlei/workspace/ebor-play/target/web/classes/main/META-INF/resources/webjars
See this source file for the source of the error.
This was a problem in sbt-web. They've increased the limit: https://github.com/sbt/sbt-web/issues/104
I've solved this issue in tests by mocking up the WebJarAssets class. Basic fake application creation code in the test class that extends OneAppPerSuite or OneAppPerTest can look like the following:
implicit override lazy val app: Application = new GuiceApplicationBuilder()
.in(Environment(new File("."), this.getClass.getClassLoader, Mode.Test))
.bindings(bind[WebJarAssets].toInstance(mock[WebJarAssets]))
.build
Here I also mixed in the org.scalatest.mock.MockitoSugar trait in order to use mock method.
I'm not sure it is the case for functional tests where you need fully constructed application where WebJarAssets can be used.

Gradle fails to find any remote libraries

I'm using Android Studio 1.0.1 and Gradle 2.2.1, and Gradle can not download any libraries from jcenter or maven central. I specifically need joda time and expandable text view, but it seems that no matter what dependency I add, Gradle refuses to find it. Here's my build.gradle files:
Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Module build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
repositories {
jcenter()
}
defaultConfig {
applicationId "org.testOrg"
minSdkVersion 16
targetSdkVersion 21
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions{
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile project(':appmsglibrary')
compile project(':library')
compile project(':authenticationActivity')
compile project(':slidinguppanellibrary')
compile 'com.android.support:support-v4:21+'
compile 'com.google.android.gms:play-services:6.1.71+'
compile 'com.android.support:appcompat-v7:21+'
compile files('libs/HockeySDK-3.0.2.jar')
compile files('libs/jackson-annotations-2.4.0.jar')
compile files('libs/jackson-core-2.4.2.jar')
compile files('libs/jackson-databind-2.4.2.jar')
compile files('libs/picasso-2.3.4.jar')
compile files('libs/joda-time-2.4.jar')
compile 'com.squareup.picasso:picasso:2.3.2'
}
If I go into the project settings and add dependencies through the GUI, I can search for each one of these so I know that gradle knows they exist at that point. But no matter what I've tried, it always fails to sync when I have a remote library added as a dependency. Any thoughts on how to go about fixing this? I've tried uninstalling everything (Android Studio, Gradle, SDKs and tools, etc) but still have the same issue. My colleague is working on the same code base and gradle syncs just fine for him.
Result of running gradle from the command line
I ran this command from the project root ./gradlew --stacktrace --debug
18:00:47.862 [ERROR] [org.gradle.BuildExceptionReporter]
18:00:47.865 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
18:00:47.867 [ERROR] [org.gradle.BuildExceptionReporter]
18:00:47.868 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
18:00:47.869 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred configuring root project 'App-Studio'.
18:00:47.870 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve all dependencies for configuration ':classpath'.
18:00:47.871 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve com.android.tools.build:gradle:1.0.0.
18:00:47.872 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
18:00:47.872 [ERROR] [org.gradle.BuildExceptionReporter] :App-Studio:unspecified
18:00:47.873 [ERROR] [org.gradle.BuildExceptionReporter] > org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
18:00:47.874 [ERROR] [org.gradle.BuildExceptionReporter]
18:00:47.876 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
18:00:47.878 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'App-Studio'.
18:00:47.878 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:91)
18:00:47.879 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
18:00:47.880 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:504)
18:00:47.881 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:83)
18:00:47.882 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
18:00:47.882 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
18:00:47.884 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
18:00:47.885 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
18:00:47.886 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
18:00:47.887 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
18:00:47.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
18:00:47.889 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
18:00:47.890 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
18:00:47.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
18:00:47.892 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
18:00:47.893 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
18:00:47.894 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
18:00:47.895 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
18:00:47.896 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
18:00:47.897 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
18:00:47.898 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
18:00:47.899 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
18:00:47.900 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
18:00:47.901 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
18:00:47.902 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
18:00:47.902 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
18:00:47.903 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
18:00:47.904 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
18:00:47.905 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
18:00:47.905 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
18:00:47.906 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
18:00:47.906 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
18:00:47.907 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
18:00:47.907 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:52)
18:00:47.908 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:36)
18:00:47.909 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$FilesAggregatingResolvedConfiguration.rethrowFailure(SelfResolvingDependencyResolver.java:110)
18:00:47.909 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingArtifactDependencyResolver.java:180)
18:00:47.910 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:444)
18:00:47.910 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:205)
18:00:47.911 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
18:00:47.912 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.defineScriptHandlerClassScope(DefaultPluginRequestApplicator.java:142)
18:00:47.912 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:60)
18:00:47.913 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:131)
18:00:47.913 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39)
18:00:47.914 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
18:00:47.914 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
18:00:47.915 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:59)
18:00:47.916 [ERROR] [org.gradle.BuildExceptionReporter] ... 30 more
18:00:47.917 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:1.0.0.
18:00:47.918 [ERROR] [org.gradle.BuildExceptionReporter] Required by:
18:00:47.919 [ERROR] [org.gradle.BuildExceptionReporter] :App-Studio:unspecified
18:00:47.920 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.resolve(RepositoryChainDependencyResolver.java:81)
18:00:47.921 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainAdapter.resolve(RepositoryChainAdapter.java:69)
18:00:47.921 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModuleResolver.resolve(ClientModuleResolver.java:44)
18:00:47.922 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.resolve(DependencyGraphBuilder.java:577)
18:00:47.922 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.getMetaData(DependencyGraphBuilder.java:587)
18:00:47.923 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder.java:272)
18:00:47.923 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.java:246)
18:00:47.924 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:156)
18:00:47.925 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.resolveDependencyGraph(DependencyGraphBuilder.java:94)
18:00:47.925 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:84)
18:00:47.926 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver$1.execute(DefaultDependencyResolver.java:122)
18:00:47.926 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver$1.execute(DefaultDependencyResolver.java:88)
18:00:47.927 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Transformers$4.transform(Transformers.java:136)
18:00:47.928 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:61)
18:00:47.928 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:39)
18:00:47.929 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver.resolve(DefaultDependencyResolver.java:88)
18:00:47.929 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver$1.run(CacheLockingArtifactDependencyResolver.java:42)
18:00:47.930 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
18:00:47.930 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:187)
18:00:47.931 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:175)
18:00:47.932 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:106)
18:00:47.932 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCacheFactory.java:187)
18:00:47.933 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:64)
18:00:47.933 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:40)
18:00:47.934 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver.resolve(SelfResolvingDependencyResolver.java:45)
18:00:47.934 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyResolver.java:55)
18:00:47.935 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:47)
18:00:47.935 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationResolver.resolve(DefaultConfigurationResolver.java:46)
18:00:47.936 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveNow(DefaultConfiguration.java:250)
18:00:47.937 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:240)
18:00:47.937 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)
18:00:47.938 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:442)
18:00:47.938 [ERROR] [org.gradle.BuildExceptionReporter] ... 39 more
18:00:47.939 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
18:00:47.939 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
18:00:47.940 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.http.impl.conn.PoolingClientConnectionManager.requestConnection(PoolingClientConnectionManager.java:186)
18:00:47.940 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)
18:00:47.941 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
18:00:47.941 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
18:00:47.942 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:118)
18:00:47.942 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:111)
18:00:47.943 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpClientHelper.executeGetOrHead(HttpClientHelper.java:87)
18:00:47.944 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:78)
18:00:47.944 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpClientHelper.performRawGet(HttpClientHelper.java:66)
18:00:47.945 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpClientHelper.performGet(HttpClientHelper.java:70)
18:00:47.945 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:53)
18:00:47.946 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:36)
18:00:47.946 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transfer.ProgressLoggingExternalResourceAccessor.getResource(ProgressLoggingExternalResourceAccessor.java:39)
18:00:47.947 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor.getResource(DefaultCacheAwareExternalResourceAccessor.java:72)
18:00:47.948 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadStaticResource(DefaultExternalResourceArtifactResolver.java:91)
18:00:47.948 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.resolveMetaDataArtifact(DefaultExternalResourceArtifactResolver.java:57)
18:00:47.949 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.parseMetaDataFromArtifact(ExternalResourceResolver.java:162)
18:00:47.949 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.resolveStaticDependency(ExternalResourceResolver.java:141)
18:00:47.950 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver.doResolveComponentMetaData(MavenResolver.java:82)
18:00:47.950 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveComponentMetaData(ExternalResourceResolver.java:391)
18:00:47.951 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockReleasingModuleComponentsRepository$LockReleasingRepositoryAccess$2.run(CacheLockReleasingModuleComponentsRepository.java:65)
18:00:47.951 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
18:00:47.952 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:237)
18:00:47.952 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:308)
18:00:47.953 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:114)
18:00:47.953 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.longRunningOperation(DefaultCacheFactory.java:179)
18:00:47.954 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.longRunningOperation(DefaultCacheLockingManager.java:56)
18:00:47.954 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockReleasingModuleComponentsRepository$LockReleasingRepositoryAccess.resolveComponentMetaData(CacheLockReleasingModuleComponentsRepository.java:63)
18:00:47.955 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveComponentMetaData(CachingModuleComponentRepository.java:284)
18:00:47.956 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.BaseModuleComponentRepositoryAccess.resolveComponentMetaData(BaseModuleComponentRepositoryAccess.java:38)
18:00:47.956 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedModuleComponentRepository$CachedAccess.resolveComponentMetaData(InMemoryCachedModuleComponentRepository.java:70)
18:00:47.957 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.process(ComponentMetaDataResolveState.java:70)
18:00:47.957 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.resolve(ComponentMetaDataResolveState.java:62)
18:00:47.958 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.findBestMatch(RepositoryChainDependencyResolver.java:114)
18:00:47.958 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.findBestMatch(RepositoryChainDependencyResolver.java:97)
18:00:47.959 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.resolve(RepositoryChainDependencyResolver.java:70)
18:00:47.959 [ERROR] [org.gradle.BuildExceptionReporter] ... 70 more
18:00:47.960 [ERROR] [org.gradle.BuildExceptionReporter]
18:00:47.960 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:00:47.961 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
18:00:47.962 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:00:47.962 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 2.372 secs
I had a similar problem and was caused by the gradle proxy settings
If you are using proxy settings, make sure that you have the HTTPS proxy set.
Looks like you are not using the Dependency with Classifier in your dependencies as described in section 51.4.1.3. Classifiers.
Specifically
compile files('libs/joda-time-2.4.jar')
for joda time.
Also gradle please is a nice place to find the latest version and format for most gradle dependencies, such as jodatime http://gradleplease.appspot.com/#jodatime.

Categories