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?
Related
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.
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
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
From today morning doesn't know what is happening in my android studio
I reinstalled the android studio but still, it doesn't change I have no idea what is the issue
I tried to install the Android support but seems it is not available.
In Android Studio go to
File -> Settings - > Plugins -> Enable "Android Support" Plugin.
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.