Hi all,
I had a perfectly working app that compiled and executed just fine when emulating. After trying to install a 3rd party SDK for chat functionality, everything went completely tango uniform. I’ve tried using various gradle builds, deleting the SDKs that caused the problem, using default gradle wrapper, and altering various versions of buildTools. I’ve also deleted and reinstalled APIs. I’m at a complete loss here. Nothing I can find online is fixing my problem. Can anyone please help? Normally I would just sit and crunch through it but this app is proprietary for my company and I’ve got a deadline staring me down.
app build.gradle is here:
sdk build.gradle file:
// 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.5.0’**
** // NOTE: Do not place your application dependencies here; they belong**
** // in the individual module build.gradle files**
** }**
}
allprojects {
** repositories {**
** jcenter()**
** }**
}
Here is my event log:
4:04:50 PM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :sdk:generateDebugSources, :sdk:generateDebugAndroidTestSources, :sdk:compileDebugSources, :sdk:compileDebugAndroidTestSources]
4:04:53 PM Gradle build finished with 1 error(s) in 2s 516ms
Here is my Gradle Build output:
Error:FAILURE: Build failed with an exception.
*** What went wrong:**
Task ‘compile’ is ambiguous in root project ‘CBDashboard’. Candidates are: ‘compileDebugAidl’, ‘compileDebugAndroidTestAidl’, ‘compileDebugAndroidTestJavaWithJavac’, ‘compileDebugAndroidTestNdk’, ‘compileDebugAndroidTestRenderscript’, ‘compileDebugAndroidTestSources’, ‘compileDebugJavaWithJavac’, ‘compileDebugNdk’, ‘compileDebugRenderscript’, ‘compileDebugSources’, ‘compileDebugUnitTestJavaWithJavac’, ‘compileDebugUnitTestSources’, ‘compileLint’, ‘compileReleaseAidl’, ‘compileReleaseJavaWithJavac’, ‘compileReleaseNdk’, ‘compileReleaseRenderscript’, ‘compileReleaseSources’, ‘compileReleaseUnitTestJavaWithJavac’, ‘compileReleaseUnitTestSources’.
*** Try:**
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.