Skip to main content

The Gradle Nightmare in Android Studio

The Gradle Nightmare in Android Studio


 This is a relatively common message in Android Studio if you dare to touch Gradle:

11:13 PM    Gradle sync failed: Minimum supported Gradle version is 3.3. Current version is 2.2. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Acer Aspire\AndroidStudioProjects\MyApplication\gradle\wrapper\gradle-wrapper.properties to gradle-3.3-all.zip
                    Consult IDE log for more details (Help | Show Log)


 I have installed Gradle in c:\gradle and configured Android Studio File->Settings->Build, Excution ..->Gradle to point to this installation. 

If you try to rebuild the project, you still get:

Error:Could not find com.android.tools.build:gradle:3.5.0.
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio2/gradle/m2repository/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom
    file:/C:/Program Files/Android/Android Studio2/gradle/m2repository/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar
Required by:
    project :


The question is: How come Androd Studio ignores my Gradle settings and sets off to Karura forest to look for gradle installations?? 

It seems Gradle refactoring is non-existent in Android Studio, hence, upgrade at you own risk You could spend the rest of your life sorting out the resulting mess.

Comments

Popular posts from this blog

How to Install RIOT Plugin for GIMP

How to Install RIOT Plugin for GIMP:: Since this article was first written a stand-alone version of RIOT has been made available Download the plugin from  http://luci.criosweb.ro/riot/download/Select the download link titled "RIOT as plug-in for other applications"   Launch the Riot-plugin.exe file by double clicking.The installer installs all the files including Riot.exe, Riot.dll, and FreeImage.dll in the location where you installed GIMP  If GIMP is open, close it and re-launch it.To optimise an image, open it then save with menu File->Save for web with RIOT  You can set the target file size by selecting "Compress to size" button  on bottom right corner of optimised image pane and providing the size in kilobytes. Alternatively you can use a slider provided to allow you to change the quality while showing you a preview of the resulting image.


Enjoy.

How to Stream Live With Your Smartphone

Using Larix Broadcaster , you can stream live video and audio from a smartphone running Android, IOS or Windows. The steps are:
Download and install Larix from the link above.Configure LarixTest with the streaming server provided by whomever is hosting your live streamWhen requested, start sending your stream.
Before giving details explanations of how to configure Larix, its important to note one of two things about the stream:
Many people may be watching worldwide and its important to test and then, during the live stream, ensure only acceptable video and audio are sent to the server. The Larix website illustrates the connection between your phone, server and the viewer devices. Clear video requires planning your shot - from which direction? is the lighting good? will bright lights interfere? Is there traffic noise or other interference.Maintain your smartphone in  landscape orientationIf more than one person are to stream to the same server, be on standby and start your stream promptly…

How to Install Packet Tracer 6.0.1 for Linux

This article is intended to help me remember the installation process for Cisco Packet Tracer 6 details of which seems to be hard to come by on the web.

1. Log in in to your Cisco Netspace account. Yes, you need to be logged in.
2. The "Download PT 6.0.1" link on is on the NetSpace home page.
3. Click this "Cisco Packet Tracer" link shown below the folder icon as shown in the figure below:

4. Select Cisco Packet Tracer 6.0.1
5. Select download location.
6. After completion of download, use your file manager to open that folder and rename the file to something such as "CPT6". It is a shell script so no file extension is required.
7. Change the file permissions to executable using command: sudo chmod 777 CPT6from a terminal window opened in the download directory. This assumes your downloaded file is renamed CPT6
8. Launch the file with command: ./CPT6 from the terminal window. You will get the message:

Self extracting archive...

Welcome to Packet Tracer 6.0…