Android Studio Execution failed for task ':app:dexDebug'


I'm trying to start my first Android Studio app and coming across
the same error over and over when I try to run or debug. I'm building
a music app using the Spotify API and have imported the zipped jar
files in the correct directory (under libs in my app).



What seems to be the problem is that maybe my SDK folder is in
another drive? I don't think so, but it was the only thing I can think
it would be. I even moved over my Android Studio folder and tried
running it from the same D: drive but didn't make any difference.



This is the error I am getting:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:

D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkuild-tools19.1.0dx.bat
--dex --output
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdexdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesclassesdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdependency-cachedebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5libsjnihelpers-1.0.jar
D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkextrasandroidm2repositorycomandroidsupportsupport-v419.0.1support-v4-19.0.1.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5classes.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.android.supportappcompat-v719.0.1classes.jar
Error Code:
1
Output:
'D:adt-bundle-windows-x86_64-20140702' is not recognized as an
internal or external command,
operable program or batch file.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output.


Here is some my code and gradle builds/props:



local.properties



sdk.dir=D:\adt-bundle-windows-x86_64-20140702(2)\adt-bundle-windows-x86_64-20140702\sdk


build.gradle(app)



apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion '19.1.0' // Note: this version should match the
latest build-tools version
// that you installed in the SDK manager

defaultConfig {
applicationId "com.jesse.spalding.subrosa"
minSdkVersion 14
targetSdkVersion 19
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

dexOptions {
preDexLibraries = false
}
}

repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.spotify.sdk:spotifysdk:1.0.0-beta5@aar'
compile 'com.android.support:appcompat-v7:19.0.1'
}


If anyone has any idea what the deal is what this, please let me
know. I need to start working on this for a final project and just
can't figure this technical thing out for some reason! Thanks in
advance.

I'm trying to start my first Android Studio app and coming across
the same error over and over when I try to run or debug. I'm building
a music app using the Spotify API and have imported the zipped jar
files in the correct directory (under libs in my app).



What seems to be the problem is that maybe my SDK folder is in
another drive? I don't think so, but it was the only thing I can think
it would be. I even moved over my Android Studio folder and tried
running it from the same D: drive but didn't make any difference.



This is the error I am getting:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:

D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkuild-tools19.1.0dx.bat
--dex --output
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdexdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesclassesdebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesdependency-cachedebug
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5libsjnihelpers-1.0.jar
D:adt-bundle-windows-x86_64-20140702(2)adt-bundle-windows-x86_64-20140702sdkextrasandroidm2repositorycomandroidsupportsupport-v419.0.1support-v4-19.0.1.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.spotify.sdkspotifysdk1.0.0-beta5classes.jar
C:UsersJesseAndroidStudioProjectsSubRosaappuildintermediatesexploded-aarcom.android.supportappcompat-v719.0.1classes.jar
Error Code:
1
Output:
'D:adt-bundle-windows-x86_64-20140702' is not recognized as an
internal or external command,
operable program or batch file.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output.


Here is some my code and gradle builds/props:



local.properties



sdk.dir=D:\adt-bundle-windows-x86_64-20140702(2)\adt-bundle-windows-x86_64-20140702\sdk


build.gradle(app)



apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion '19.1.0' // Note: this version should match the
latest build-tools version
// that you installed in the SDK manager

defaultConfig {
applicationId "com.jesse.spalding.subrosa"
minSdkVersion 14
targetSdkVersion 19
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

dexOptions {
preDexLibraries = false
}
}

repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.spotify.sdk:spotifysdk:1.0.0-beta5@aar'
compile 'com.android.support:appcompat-v7:19.0.1'
}


If anyone has any idea what the deal is what this, please let me
know. I need to start working on this for a final project and just
can't figure this technical thing out for some reason! Thanks in
advance.

Web Development

I was trying to add Google Maps service in emulator in Android
Studio for Mac.
I used href="http://www.thedevline.com/2014/03/install-google-play-services-sdk-in.html"
rel="nofollow">this
to add google play services in my
emulator and now I am getting this error.



I also added Google play jar in "libs"



Build error



Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
/Applications/Android Studio.app/sdk/build-tools/21.0.0/dx
--dex --num-threads=4 --output
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/dex/debug
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/classes/debug
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/dependency-cache/debug
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/classes-0fd5fdfe526893278be8c195ce134eaf1d9f1e86.jar
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/classes-1c1ab6ce82c35aba8a1d88f2624cf1338444a247.jar
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/classes-3fa4a9ac8fa2216bad3a7f16c9a774b0dc355d43.jar
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/classes-8f6dc1447c1249308d36a8f93d1adf33837f8664.jar
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/internal_impl-21.0.0-fd4beb3682904051af27f723f6ba9423e4f00b8a.jar
/Users/BrijD/Desktop/Final_maps/app/build/intermediates/pre-dexed/debug/support-annotations-21.0.0-ee576f91b45a6538d4156fc6e674b6f65034f74e.jar
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define
Lcom/google/android/gms/actions/ReserveIntents;
at
com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at
com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at
com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at
com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at
com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at
com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at
com.android.dx.command.dexer.Main.runMonoDex(Main.java:302)
at
com.android.dx.command.dexer.Main.run(Main.java:245)
at
com.android.dx.command.dexer.Main.main(Main.java:214)
at com.android.dx.command.Main.main(Main.java:106)


AndroidMainefest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="dormroomdevelopers.final_maps" >

<uses-permission
android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MyActivity"
android:label="@string/app_name" >
<intent-filter>
<action
android:name="android.intent.action.MAIN" />

<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MapsActivity">
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="*****************************"/>
</activity>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"
/>
</application>

</manifest>


app build.gradle



apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21"

defaultConfig {
applicationId "dormroomdevelopers.final_maps"
minSdkVersion 18
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.google.android.gms:play-services-maps:6.5.+'
}


proguard-rules.pro



-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}

-keep public class
com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
Web Development

Information:Gradle tasks [:assembleDebug]
:preBuild
:compileDebugNdk
:preDebugBuild
:checkDebugManifest
:preReleaseBuild
:facebook:compileLint
:facebook:copyReleaseLint UP-TO-DATE
:facebook:preBuild
:facebook:preReleaseBuild
:facebook:checkReleaseManifest
:facebook:preDebugBuild
:facebook:preDebugTestBuild
:facebook:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:facebook:prepareReleaseDependencies
:facebook:compileReleaseAidl UP-TO-DATE
:facebook:compileReleaseRenderscript UP-TO-DATE
:facebook:generateReleaseBuildConfig UP-TO-DATE
:facebook:generateReleaseAssets UP-TO-DATE
:facebook:mergeReleaseAssets UP-TO-DATE
:facebook:generateReleaseResValues UP-TO-DATE
:facebook:generateReleaseResources UP-TO-DATE
:facebook:mergeReleaseResources UP-TO-DATE
:facebook:processReleaseManifest UP-TO-DATE
:facebook:processReleaseResources UP-TO-DATE
:facebook:generateReleaseSources UP-TO-DATE
:facebook:compileReleaseJava UP-TO-DATE
:facebook:extractReleaseAnnotations UP-TO-DATE
:facebook:mergeReleaseProguardFiles UP-TO-DATE
:facebook:processReleaseJavaRes UP-TO-DATE
:facebook:packageReleaseJar UP-TO-DATE
:facebook:compileReleaseNdk UP-TO-DATE
:facebook:packageReleaseJniLibs UP-TO-DATE
:facebook:packageReleaseLocalJar UP-TO-DATE
:facebook:packageReleaseRenderscript UP-TO-DATE
:facebook:packageReleaseResources UP-TO-DATE
:facebook:bundleRelease UP-TO-DATE
:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:prepareComFacebookAndroidFacebook3211Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:preDexDebug
:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':dexDebug'.




com.android.ide.common.internal.LoggedErrorException: Failed to
run command:

/home/manu-005/Android_Setups/adt-bundle-linux-x86_64-20140702/sdk/build-tools/android-4.4W/dx
--dex --no-optimize --output
/home/manu-005/workspace/AppName/build/intermediates/dex/debug
/home/manu-005/workspace/AppName/build/intermediates/classes/debug
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/support-annotations-21.0.3-49ca8e8cfc94918d7386df6065be15226206f457.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/bolts-android-1.1.4-61545c8defb142f83369be67bcebfa1f7690985c.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/MobileAppTracker-3.3.3-ca9457cd9ec6680ec9d845d2fc19efec4582c397.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/internal_impl-21.0.3-e77489df911cb5896aab6b91a4d4b9a838794c56.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/crittercism_v5_0_3_sdkonly-e644ef988027d1838362de88be35bbf0b876caf6.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/MobileAppTracker-javadoc-3.3.3-1641c6311e6f070ecd4d1320f44b1ba50b75dd0c.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/classes-001b548439aeb2e89d0d4f68cd7c4e4e33d1588c.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/android-support-v4-cc1887d592a4c530b10eb1125f7e630a900240bc.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/classes-34d67503c62f0f63b1f57f2f61a56c8d3b95a06e.jar
/home/manu-005/workspace/AppName/build/intermediates/pre-dexed/debug/classes-f79c881d5c91c7786b3cf2ab1a07ece9788351e8.jar
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define
Landroid/support/annotation/AnimRes;
at
com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at
com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at
com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at
com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at
com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at
com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
Information:BUILD FAILED
Information:Total time: 3 mins 39.856 secs
Information:1 error
Information:0 warnings
Information:See complete output in console


Web Development

In Android Studio I am getting the following errors:-
Execution failed for task ':app:dexDebug'.



:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
:app:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define
Landroid/support/annotation/AnimRes;
at
com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at
com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at
com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at
com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)



FAILED



FAILURE: Build failed with an exception.




  • What went wrong:
    Execution failed for task ':app:dexDebug'.




    com.android.ide.common.internal.LoggedErrorException: Failed to
    run command:
    C:UsersPriyatoshAppDataLocalAndroidsdkuild-tools21.1.2dx.bat --dex
    --no-optimize --output
    C:UsersPriyatoshDesktopCamerafileupload27appuildintermediatesdexdebug
    --input-list=C:UsersPriyatoshDesktopCamerafileupload27appuildintermediates mpdexdebuginputList.txt
    Error Code:
    2
    Output:




    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define
    Landroid/support/annotation/AnimRes;
    at
    com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
    at
    com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
    at
    com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
    at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
    at
    com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
    at com.android.dx.command.dexer.Main.run(Main.java:246)
    at com.android.dx.command.dexer.Main.main(Main.java:215)
    at com.android.dx.command.Main.main(Main.java:106)


  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info
    or --debug option to get more log output.




BUILD FAILED



My build.gradle file:-



apply plugin: 'com.android.application'



android {
compileSdkVersion 21
buildToolsVersion "21.1.2"



defaultConfig {
applicationId "info.androidhive.camerafileupload"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}


}



dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
//compile files('libs/httpclient-4.3.6.jar')
//compile files('libs/android-support-v4.jar')
//compile files('libs/httpcore-4.3.3.jar')
//compile files('libs/httpmime-4.3.6.jar')
//compile "org.apache.httpcomponents:httpmime:4.3.6"

}


![enter image description here][1]



      [1]: http://i.stack.imgur.com/C1VGl.jpg


Can anybody suggest me how to solve it.... ?

Web Development

I am trying to add the MPAndroidChartLibrary to my Android Studio
project, however when I try to run the app, it keeps failing with 1
error. I am not very good with gradle, so i dont really know whats
going wrong.



My gradle file is this:



apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.0.2"

defaultConfig {
applicationId "com.bacon.corey.audiotimeshift"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

repositories {
flatDir {
dirs 'libs'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.android.support:support-v4:21.0.0'
compile 'com.android.support:support-v4:21.0.0'
compile
files('C:/Users/Corey/.AndroidStudioBeta/Projects/AudioTimeShift/libraries/mpandroidchartlibrary-1-7-4.jar')
}


As far as i can see, this should all be fine, however it is not
working.
This is teh log from the Gradle console:



:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72100Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42100Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava
Note:
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappsrcmainjavacomaconcoreyaudiotimeshiftMainActivity.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:preDexDebug
:app:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
C:Program Files (x86)Androidandroid-sdkuild-tools21.0.2dx.bat
--dex --output
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatesdexdebug
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatesclassesdebug
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatesdependency-cachedebug
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebugclasses-08104da82547c1da8de562eb9350a514962ceaa7.jar
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebugclasses-c916341f097aba848a3f8d1cb524d87b40a5e434.jar
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebuginternal_impl-21.0.0-dd323fb38f6f05cc36bfccaf6824e44b4d16534e.jar
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebuglibrary-2.4.0-1028d824e09b12c83da4be3e497c82fdc33874f5.jar
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebugmpandroidchartlibrary-1-7-4-1e0626ccaecee3e156334e8c3c9fcf07d352edb9.jar
C:UsersCorey.AndroidStudioBetaProjectsAudioTimeShiftappuildintermediatespre-dexeddebugsupport-annotations-21.0.0-9528452d0a4563476596d64e06f21a3014c413f7.jar
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define
Lcom/nineoldandroids/animation/ValueAnimator$AnimatorUpdateListener;
at
com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at
com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at
com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at
com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at
com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:302)
at com.android.dx.command.dexer.Main.run(Main.java:245)
at com.android.dx.command.dexer.Main.main(Main.java:214)
at com.android.dx.command.Main.main(Main.java:106)
Information:BUILD FAILED
Information:Total time: 18.241 secs
Information:1 error
Information:0 warnings
Information:See complete output in console


If someone could please give me a few pointers as to where i am
going wrong, i would be immensivly grateful.



Thanks, Corey B :)

Web Development

I have imported my application from android studio 0.8 to 1.0. But
when i am running the application i am getting the error message



Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to
run command:
/home/anand/SLABS_SOFT/android-studio/sdk/build-tools/21.1.2/dx
--dex --no-optimize --output
/home/anand/AndroidStudioProjects/smartcity-android/app/build/intermediates/dex/debug
--input-list=/home/anand/AndroidStudioProjects/smartcity-android/app/build/intermediates/tmp/dex/debug/inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0,
0xffff]: 65536
at
com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)
at
com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)
at
com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)
at
com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at
com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)


I am not able to figure out why this error is arising.



The build.gradle for my application is:



apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.mobile.android"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
packagingOptions {
// Exclude file to avoid
// Error: Duplicate files during packaging of APK
exclude
'META-INF/services/javax.annotation.processing.Processor'
}
buildTypes {
release {
minifyEnabled false
proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'

compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/com.google.android.maps.jar')
compile 'com.google.android.gms:play-services:6.5.87'

compile
'com.nostra13.universalimageloader:universal-image-loader:1.8.5'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.jakewharton:butterknife:5.1.1'

compile 'com.squareup.dagger:dagger:1.0.1'
compile 'com.squareup.dagger:dagger-compiler:1.0.1'
compile 'com.squareup.retrofit:retrofit:1.5.1'
compile 'com.squareup:otto:1.3.4'

compile
'com.google.api-client:google-api-client-android:1.17.0-rc'
compile 'com.google.http-client:google-http-client-gson:1.17.0-rc'


compile('com.github.androidsocialnetworks:library:0.3.7@aar') {
transitive = true
}
// compile 'com.squareup.okhttp:okhttp:2.0.0@jar'
// Image Slider Library
compile 'com.daimajia.slider:library:1.1.2@aar'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'

}
Web Development

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow