Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)

According to Xavier Durochet’s explanation on G+, it’s due to one of the libraries you use having it’s own ic_launcher.png — which they of course should not (more on that at the bottom). Chances are the two icons mentioned in the log are different: one is yours and another one is most likely the generic … Read more

Android Studio quick documentation always “fetching documentation”

The problem is Android Studio does not automatically update the source link of reference even when the documentation is already downloaded. The default link in jdk.table.xml is http://developer.android.com/reference/ (android studio tries to connect to this online server even if the network is blocked). To solve the problem, we can just redirect the reference to local … Read more

Android Studio strange code sub-windows after upgrade to Arctic Fox (2020.3.1)

Just stumbled upon the same thing (strange windows upon attempting to refactor some code after updating to Arctic Fox). After a lot of searching around the options/menus/internet this fixed it for me: Navigate to: File > Settings… > Editor > Code Editing under Refactorings > Specify refactoring options: select In modal dialogs Press OK. Fingers … Read more

Flutter Build Error: Process ‘command ‘E:\Flutter Apps\flutter\bin\flutter.bat” finished with non-zero exit value 1

I had the same problem after this command flutter upgrade and upgrading from V 1.22 to V 1.27. Exactly what I did, I went to pubspec.yaml then pub-get & pub-upgrde I found there’s many outdated packages then I tried pub-outdated and the AS failed to upgrade it, the it’s suggests to me to run this … Read more

Error:Failed to resolve: android.arch.core:common:1.1.0

I resolve this issue by moving maven {url “https://maven.google.com”} before jcenter(), like this: repositories { maven { url “https://maven.google.com” } jcenter() maven { url ‘https://jitpack.io’ } } This is because I find jcenter() repository has deleted the directory of android.arch.core, so we have to get this file (android.arch.core:common-1.1.0.jar) from “https://maven.google.com”

Taking screenshot on Emulator from Android Studio

Starting with Android Studio 2.0 you can do it with the new emulator: Just click 3 “Take Screenshot”. Standard location is the desktop. Or Select “More” Under “Settings”, specify the location for your screenshot Take your screenshot UPDATE 22/07/2020 If you use the emulator inside Android Studio which is possible since Android Studio 4.1 click … Read more

Could not find or load main class org.gradle.wrapper.GradleWrapperMain

In addition to @RaGe’s answer may be the situation I faced where i had a global git ignore that was ignoring .jar files and so the gradle wrapper jar was never being committed. Thus I was getting that error on the Jenkins server after an attempted /var/lib/jenkins/my_project/gradlew build. I had to explicitly force an add … Read more