Gradle error: Write access is allowed from event dispatch thread only in Android Studio

So the problem was concluded in that Android Studio conflicted with my installed JDK version, so it was resolved when I checked JDK location (File → Project Structure → SDK Location), ticked ‘Use embedded JDK’ checkbox and set JDK location to ‘path to Android Studio’\Android Studio\jre

How to clear gradle cache?

Gradle cache is located at On Windows: %USERPROFILE%\.gradle\caches On Mac / UNIX: ~/.gradle/caches/ You can browse to these directory and manually delete it or run on UNIX system. Run this command will also force to download dependencies. UPDATE Clear the Android build cache of current project NOTE: Android Studio’s File > Invalidate Caches / Restart doesn’t clear the Android build cache, so … Read more

Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

Run gradle -q dependencies (or gradle -q :projectName:dependencies) to generate a dependency report. You should see where r7 is coming from, such as: Then, use the exclude directive to block that dependency. In my case, it is coming from my CWAC-Camera library, and so I use: (where the second compile statement indicates what version you … Read more

Could not find com.android.tools.build:gradle:3.0.1

When I try to build my project with gradle wrapper I get this error: The same project builds OK in Android Studio. I’ve already checked this and this but I’m using gradle wrapper version 4.1, have added google() repository and even tried setting android.enableAapt2=false. Any other tips? Thanks. My root build.gradle file: My gradle-wrapper.properties file: … Read more

Web server failed to start. Port 8080 was already in use. Spring Boot microservice

If you don’t want the embedded server to start, just set the following property in you application.properties (or .yml): If your classpath contains the necessary bits to start a web server, Spring Boot will automatically start it. To disable this behaviour configure the WebApplicationType in your application.properties Source: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-web-servers.html If you application really is a Web application, then you can easily … Read more

Web server failed to start. Port 8080 was already in use. Spring Boot microserviceWeb server failed to start. Port 8080 was already in use. Spring Boot microservice

If you don’t want the embedded server to start, just set the following property in you application.properties (or .yml): If your classpath contains the necessary bits to start a web server, Spring Boot will automatically start it. To disable this behaviour configure the WebApplicationType in your application.properties Source: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-web-servers.html If you application really is a Web application, then you can easily … Read more