Tag Archives: android stdio

Android stdio error invoking main method

Failed to open Android stdio with error: error invoking main method

 

Think about what you did the day before

 

Yesterday, I tried to move the Android stdio package to the disk, but it was cut off halfway, that is, part of it was moved, and the rest was still in the original disk, but the program was running yesterday and did not close, so there was no problem that day

Wait until the next day to restart and start reporting errors

 

The reason for error reporting is that the file is missing

 

Solution: if the missing file (the file I moved) is moved back, no error will be reported

 

There are also problems with unified error reporting on the Internet. A great God said that it can be solved by restarting and not networking. My “etiology” is different, so the solution is different. This record will be improved in the future

 

Android Stdio Compile project report Error:Failed to find target with hash string ‘android-24

android stdio compile project report Error:Failed to find target with hash string ‘android-24

View existing SDKs

Set the project’s sdk to 25

android {

compileSdkVersion 25

buildToolsVersion “25.0.0”

defaultConfig {

applicationId “com.accessibility”

minSdkVersion 14

targetSdkVersion 25

versionCode 1

versionName “1.0”

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’

}

}

}

After compiling everything is OK