Gradle Sync Failed in Android Studio 3.1.2 - java

How to Solve this error I amm using Android Studio Version 3.1.2
My Build tool is 27.1.1 and I also download the build tool 21.1 for the Project in which I am working:

You need to upgrade your Gradle version.
Edit the file as shown in the images.
See the official Google plugin page

Related

facing difficulty to download gradle in dolphin android version

After installing the new windows10 i am facing issue with newer version of android studio dolphin everytime when I open android studio with a new project or an existing project it starts downloading the gradle 7.4 and after sometime i got an error of timeout. I tried a method found on youtube where the gradle wrapper properties are replaced but it did not work.
I faced some difficulties too when I was updating android studio to dolphin version.
Go to gradle-wrapper.properties and try to change distributionUrl value to distributionUrl=https://services.gradle.org/distributions/gradle-7.4-bin.zip
Go to the project structure and change gradle version to 7.4

Android Studio Chipmunk (2021.2.1) Java 8 library desugaring in D8 and R8 Build Error: "Unsupported desugared library configuration version"

After updating my apps build gradle and dependencies (I did not update Android Studio itself), Android Studio is giving me this error: Error: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler.
Before the update everything compiled fine.
I am using:
com.android.tools:desugar_jdk_libs:1.2.0 (This was the newest version I could find)
Gradle plugin version 7.2.0
Gradle version 7.5
Android Studio version Chipmunk (2021.2.1)
Did I configuration something wrong? How can I fix this? Thanks in advance!
According to this page, the minimum version of Android Gradle plugin required is 7.3.0-beta03 to be able to upgrade the desugar library to 1.2.0, and 7.3.x is not yet available for Android Studio Chipmunk.

Android Studio 4 Complete Offline Setup

I am trying to setup Android Studio For Offline builds, using latest gradle.
System - Windows 10 64 Bit.
What i have done so far?
Downloaded and Installed Android Studio 4.0.1 Windows 64 Bit from official website. Android SDK and AVD also selected during installation. (Internet Install)
Downloaded Offline components.
Android Gradle Plugin.
Google Maven Dependencies.
From -https://developer.android.com/studio#downloads
And setup according to docs for offline setup.
Downloaded Latest Complete Gradle zip file from :
https://gradle.org/releases.
Gradle version 6.5.1 (gradle-6.5.1-all.zip)
Pasted Gradle zip into .gradle/wrapper/dists/
And extracted it their.
And changed the path From File-> Settings->Build Tools->Gradle to above extracted folder.
When i tried to build, i got following errors:
Could not find com.android.tools.build:gradle:4.0.1 Searched in the following locations: - file:/C:/Users/Xevns/.android/manual-offline-m2/gmaven_stable/.../gradle-4.0.1.pom
Once inspected the offline components achieve, i think it uses Old Android Gradle plugin v3.5.0 beta and Old maven dependecy. But in project its using Gradle plugin 4.0.1 and Gradle 6.5.1.
Please help, where find it latest and setup.
The so called: latest versions of the Android Gradle plugin link does not contain the latest version. You have to select one that is in that package:
Grandle Scripts -> build.grandle :
classpath 'com.android.tools.build:gradle:3.4.0'
The Android Grandle Plugin package does not contain library versions that are needed for that "tools.build:grandle" version - (download manualy from repos?)
Other dependencies (appcompat,constraint-layout, ...) the same problem, requested versions are not included in downloaded Google Maven package.

required plugin "org.jetbrains.idea.maven" not installed

I am using Android Studio 3.5.3 , i dont see any option for MAVEN project and i have tried installing couple of plugins after surfing over net. but still no luck.
I get below error :
Plugin Error
Problems found loading plugins:
Plugin "Maven Runner" was not loaded: required plugin "org.jetbrains.idea.maven" not installed.
I dont see Maven option. only gradel is available
Android Studio image 1
even here i dont see maven
Android Studio image 2

Android Building Workspace Error

I have a project that uses stORM. When i try to open Eclipse downloaded as a Android ADT package. i am getting the following error
Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'stORM'.
java.lang.NullPointerException
I have noticed that if i delete this project from the Workspace Eclipse works fine. Looks like there is some issues with the Annotation Processor of stORM or ADT package.
Any idea how to solve this ?
ADT version
I solved this issue upgrading the SDK Manager and ADT to the latest preview versions. See here for more information:
Android Pre Compiler error on 21.0.1 android sdk
WORKAROUND
Hi there! I've been getting the exact same error (latest ADT plugin (21.0.1-543035) and Eclipse 4.2.1).
What helps in my case: I turn off annotation processing in "Project Properties/Java Compiler/Annotation Processing", then restart Eclipse, Clean Project, re-enable annotation processing, Build.

Categories

Resources