Android Studio: Could not find com.android.tools.build:gradle:2.0.0-alpha2

Apparently the build tools have been moved from maven to jcenter so you need to change the code from: buildscript { repositories { mavenCentral() } dependencies { classpath ‘com.android.tools.build:gradle:2.0.0-alpha2’ } } to this buildscript { repositories { jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:2.0.0-alpha2’ } } More details on the changes: Android Tools Project Site http://tools.android.com/recent … Read more

Project already contains module with this name — Android Studio

If somebody faces this issue, except removing the Folder containing the old module also remove from the settings.gradle file the line corresponding to the old module: include ‘:youroldmodule’. If you dont remove that line manually, 2 modules with the same name will appear when trying to add module dependency.

Could not find method android() for arguments

You are using the wrong build.gradle file. In your top-level file you can’t define an android block. Just move this part inside the module/build.gradle file. android { compileSdkVersion 17 buildToolsVersion ‘23.0.0’ } dependencies { compile files(‘app/libs/junit-4.12-JavaDoc.jar’) } apply plugin: ‘maven’

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable

Please follow below steps it work’s for me: Go to your react-native Project then go to android directory Create a file with following name: local.properties Open the file and paste your Android SDK path like below: For windows users: sdk.dir=C:\\Users\\UserName\\AppData\\Local\\Android\\sdk Replace UserName with your pc user name . Also make sure the folder is sdk … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)