Recently I try programming a Android Application on Android studio.
So here´s my problem:
when I try to deploy my apk to the AVD there is a popup
Unfortunately, AppHeisl(the name of my application) has stopped
So I tried running the debugger and it shows me that the BootClassLoader throws a ClassNotFound Exception, because it couldn´t find the mainActivity.
So I looke for the error here and found this
After seeing i´d need to clean my project I looked up how to do that on android Studio. Turns out its simple: Opening the terminal in the root folder of the project and entering:
but when I try that I always get a error message:
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'AppHeisl'. > Could not resolve all files for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:3.0.1. Required by: project : > Could not resolve com.android.tools.build:gradle:3.0.1. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2 /com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Connect to dl.google.com:443 [dl.google.com/22.214.171.124] failed: Connection refused: connect > Could not resolve com.android.tools.build:gradle:3.0.1. > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/126.96.36.199] failed: Connection refused: connect
SO my question is,
What actually is the bigger problem, and how to solve it, or preferably both