Android Studio 3.2.1 Project sync failed - android

I am a beginner Android Programmer.
i have android project source but can not run and have error Sync failed.
my android studio version is 3.2.1
sdk version from api 19 to api 26
gradle version 3.2.1 to 5.1 download from gradle website
Error when sync project
Gradle Setting
Gradle-wrapper-properties
gradle setting
i tested offline mode and in setting use local gradle distribution but can not sync project
Run button
and run button disable !!!
After set Proxy to android studio and download some file
Cannot create variant 'android-manifest-metadata' after configuration ':app:debugApiElements' has been resolved

make sure u have high speed internet connection , in sudan we have another problem that is some sites are blocked from us we use vpn applications before we can synchronizing the project ,to check that try to rich developer.android.com from browser

Related

Installing Android Studio on Mac - offline

I try to install Android Studio on a Mac as offline version.
Therefore I installed Android Studio then added ADK folder and have problems to get the gradle running.
Obviously it has no connection to google but I did go to settings -> deploy... -> gradle and changed to local gradle 6.5
Before local Gradle
After local Gradle
Click on enable offline mode
I am really confused how to install Android Studio on a Mac if it is an offline laptop.
Thank you in advance.
You should connect it to the internet at least one time to download the latest gradle.

Could not download builder.jar Android Studio 4.0

Well, I updated to Android Studio 4.0 yesterday, but I can't gradle sync. I always get
could not download builder.jar: no cached version available for offline mode
When I get this error in previous version, I just goto File>Settings>Gradle>Android Studio and tick use embedded repository. But now I can't find that function in new Android Studio 4.0

Android Studio - Could not download sdk-common.jar

I'm trying to learn Android programming. I installed Android Studio and installed the SDK for 28 - 24. Then I started a new project and set the minimum level to 26. As soon as Android Studio creates the project it attempts to build the project and immediately presents this error:
Error:Could not download sdk-common.jar (com.android.tools:sdk-common:26.1.4):
No cached version available for offline mode
I've tried searching but haven't found any solution.
How can I fix this? Thanks.
Error:Could not download sdk-common.jar
(com.android.tools:sdk-common:26.1.4): No cached version available for
offline mode
You should Uncheck offline work at first.
File -> Settings ->Build, Execution,Deployment -> Build Tools -> Gradle ->
Uncheck Offline work
Then Clean-Rebuild and GRADLE your project.
You have to disable offline mode in android studio so that it can download all the required components /dependencies from network that are not available offline.
See this for how to disable offline mode in android studio: How to disable gradle 'offline mode' in android studio?

Project Doesn't Build in Android Studio 2.3.1 at all

Yesterday I updated my Android Studio version from 2.3 to 2.3.1 and today when I tried to create a New Project this familiar screen should disappear after sometime but it didn't disappeared after 30 minutes of waiting. Anyhow I managed to close android studio by Task Manager and started Android Studio again and created a new project again and the same thing happened again.
Although when I open my previous projects again they are working fine but the problem is with the new project creation only. I am having a good working internet connection along with the latest version of gradle 3.4.1
Any idea why this would be happening?
How to resolve this?
I had this "problem" with android studio but after looking here and there I found out that when I update gradle version for my project, for example from 2.2 to 2.2.1, if I do not have that gradle version already android studio tries to download gradle distribution for that version to build the project and since I have poor internet connection, it was the download which was taking time.
Maybe your android studio is downloading the gradle too and it takes time.

why can't I use my android studio 2.3 Instant run features?

My AS is 2.3 official version
and I already open the Instan run on the settings
but it can't use,and the lightning symbol is always not light,just like this
I don't why this is,who has other ideas?
Make sure the Android Gradle plugin is version 2.3.0 and Gradle is version 3.3.
Else it wont work. Android studio should tell you that by default. Normally when you open your project or after a clean build.

Categories

Resources