Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath’: Could not resolve project :animators

With Android Studio 2.3(AS) the project works fine and i can able to run the App. After updating the AS to Android Studio 3.0. i too got the error as below for libraries and build types. Unable to resolve dependency for ‘:app@dexOptions/compileClasspath’: Could not resolve project : library_Name. Unable to resolve dependency for ‘:app@release/compileClasspath’: Could … Read more

Adding local .aar files to Gradle build using “flatDirs” is not working

Building upon Josiah’s answer, here’s how I got it to work. Following his instructions (under edit) (File -> New-> New Module -> Import .JAR/.AAR) and import your .AAR. Then in your project build.gradle (not the top level one, the one under ‘app’) add the following (in the dependencies section): dependencies { compile project(‘:Name-Of-Your-Project’) } Note … Read more

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

Just like CommonsWare suggested, make sure you have Gradle 2.2.1+ (the latest is 2.3). Make sure you upgrade your Android Studio but here are the “plugins” that need to be updated: Top build.gradle: Change: classpath ‘com.android.tools.build:gradle:1.1.0-rc1’ To: classpath ‘com.android.tools.build:gradle:1.1.3’ // latest 1.5.0 App build.gradle: Change: compile ‘com.android.support:recyclerview-v7:21.0.0’ compile ‘com.android.support:cardview-v7:21.0.0’ To: compile ‘com.android.support:recyclerview-v7:22.0.0’ // latest 23.1.1 … Read more

What’s the difference between buildscript and allprojects in build.gradle?

The “buildscript” configuration section is for gradle itself (i.e. changes to how gradle is able to perform the build). So this section will usually include the Android Gradle plugin. The “allprojects” section is for the modules being built by Gradle. Oftentimes the repository section is the same for both, since both will get their dependencies … Read more

How to set versionName in APK filename using gradle?

I only have to change the version name in one place. The code is simple too. The examples below will create apk files named named MyCompany-MyAppName-1.4.8-debug.apk or MyCompany-MyAppName-1.4.8-release.apk depending on the build variant selected. Note that this solution works on both APK and App Bundles (.aab files). See Also: How to change the proguard mapping … Read more

com.google.android.gms:play-services-measurement-base is being requested by various other libraries

The actual problem is discussed in the May, 23rd release note of https://developers.google.com/android/guides/releases#may_23_2018 Basically, you need to bump all Play Services and Firebase libraries to their latest version (which may be different for each since version 15). You may use https://mvnrepository.com/ to find the latest version for each library. See also: https://firebase.google.com/support/release-notes/android#20180523

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