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

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

Your gradle wrapper is missing, broken or corrupted. What is gradle wrapper:gradlew is the gradle wrapper executable – batch script on windows and shell script elsewhere. The wrapper script when invoked, downloads the defined gradle version and executes it. By distributing the wrapper with your project, anyone can work with it without needing to install Gradle … Read more

Gradle does not find tools.jar

Found it. System property ‘java.home’ is not JAVA_HOME environment variable. JAVA_HOME points to the JDK, while java.home points to the JRE. See that page for more info. Soo… My problem was that my startpoint was the jre folder (C:\jdk1.6.0_26\jre) and not the jdk folder (C:\jdk1.6.0_26) as I thought(tools.jar is on the C:\jdk1.6.0_26\lib folder ). The compile line in dependencies.gradle … Read more

How can I force gradle to redownload dependencies?

Generally, you can refresh dependencies in your cache with the command line option –refresh-dependencies. You can also delete the cached files under ~/.gradle/caches. With the next build Gradle would attempt to download them again. What is your specific use case? Do you use dynamic dependency versions or SNAPSHOT versions? On Unix systems, you can delete all the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)