Android

Could not resolve com.android.support:support-v4:22.0.0, Android Studio

Posted on

While implementing Push Notifications, I get this error Could not resolve all dependencies for configuration I’ve installed Google Play Services and Google Repository using SDK manager and added the following dependencies in gradle file dependencies { compile ‘com.google.android.gms:play-services-gcm:7.0.0’ …. } When I run the app, I see following error, Could not resolve all dependencies for configuration ‘:library:_debugCompile’. […]

Android Studio

Gradle error, Could not find method jcenter() for arguments [] on repository container

Posted on

Could not find method jcenter() When i tried to see project dependencies using gradle command in Android Studio Terminal, I get following error,Could not find method jcenter() for arguments [] on repository container. project_path>gradle -q dependencies app FAILURE: Build failed with an exception. Where: Build file ‘projectpathbuild.gradle’ line: 4 What went wrong: A problem occurred […]

Android

com.android.dex.DexException: Multiple dex files define, Android Studio

Posted on

After moving an Eclipse project to Android Studio work space, and build project (Make Project), I see Build successful but when I run the project… I get the following exception, com.android.dex.DexException: Multiple dex files define Error:Execution failed for task ‘:<projectname>:dexDebug’. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: <home>AppDataLocalAndroidsdkbuild-tools21.1.2dx.bat –dex –no-optimize –output <home>AndroidStudioProjects<projectpath>buildintermediatesdexdebug –input-list=<home>AndroidStudioProjects<projectpath>buildintermediatestmpdexdebuginputList.txt Error Code:2 Output: UNEXPECTED […]