Warning during App build on Android studio 3.6.1 - android

I just updated Android studio 3.6.1 and while building my app I got following warning:
Configure project :app
WARNING: The following project options are deprecated and have been removed:
android.enableUnitTestBinaryResources
The raw resource for unit test functionality is removed.
What is this warning about and how to remove this?

The robolectric instructions say that this configuration is not necessary with Android Studio 3.3+
So, please check your gradle.properties file and remove this line:
android.enableUnitTestBinaryResources=true

In my case, I just cleared my gradle cache files and that seemed to have resolved the problem

My problem solved by removing configuration at gradle.properties. see below:
#android.enableBuildCache=true

Related

Migrate Flutter project to AndroidX

The issue I was facing was to build and run my application and terminal saying 'Your project is doesn't support AndroidX'.
Solution: https://flutter.dev/docs/development/androidx-migration
So I went to the given link and tried to implement it by the help of Android Studio, but it always leads to No usage found.
So I went back to the link and tried the other approach of editing the gradle.properties in android level (android/gradle) and add these properties:
android.useAndroidX=true
android.enableJetifier=true

Error running Android Studio - "Could not find com.android.tools.build:gradle:3.2.1"

I have a problem running Android Studio 3.1.0
Error message:
Could not find com.android.tools.build:gradle:3.2.1.
Searched in the following locations
The Gradle wrapper is what you're looking for. You can change the wrapper's settings in your project's gradle/wrapper/gradle-wrapper.properties file.
Change
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
com.android.tools.build:gradle:3.1.2
instead of
com.android.tools.build:gradle:3.2.1

How to solve this type of gradle error in android studio?

I have tried to solve this problem for 3 months but I always failed to solve it?
Error:The project is using an unsupported version of Gradle.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)
Fix Gradle wrapper and re-import project<br>Gradle settings
change your gradle version to latest in project level build.gradle file.
Open your android studio. Go to Tools -> Android -> Sync project with Gradle File.
Happy Coding...
Just like they said, Open your studio. Go to file->settings->Build,Execution,Deployment->Gradle.
My friend in university had the same problem like you. I think that he solved it. I will talk to him and dm you what he said.

Could not create an instance of Tooling API implementation using the specified Gradle installation

I just downloaded and installed the latest version of android studio (v 1.4). After creating a new project, I see this error about the gradle refresh failure:
Error: Could not create an instance of Tooling API implementation using the specified Gradle installation '/Applications/Android Studio.app/Contents/gradle/gradle-2.4'.
I've tried so many different things that I have found online and no fix. When I open the layout window of the project it says "Gradle project sync failed..."
I am not sure what the error means at all and also do not know how to use any other different version of it.
I had this problem, fix is don't use gradle 2.4 I deleted gradle/gradle 2.4 folder and in gradle/wrapper/ gradle-wrapper-properties in build directory change 'distributionUrl' to another gradle distribution.
Deleting everything in /Library/Java/Extensions/ fixed this for me.
Issue with more info: https://issues.gradle.org/browse/GRADLE-1451
Add lines at the end of eclipse.ini
--illegal-access=warn
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
source

Gradle project refresh failed, cause http://downloads/.../gradle-2.4.1

I was adding a library to my project which required updating the gradle to 2.4.+ and when changed it and rebuilt the project, I got this error:
What should I do?
It happens because 2.4.1 doesn't exist.
Check here the full list.
In gradle/wrapper/gradle-wrapper.properties file use:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.4-all.zip

Categories

Resources