Build Finished but App Is Not Running - Android
App Is Not Running Neither on Emulator nor on Real Device. I Do Not Understand the Reason. This Is My Build. Gradle Apply Plugin: 'Com. Android. Application'...
app is not running neither on emulator nor on real device. I do not understand the reason. this is my build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "ge.mobility.anako.parser"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}
5 Answers
For me after I update compileSdkVersion to 31 and add my starting activity android:exported="false" this happend. exported=true resolved.
Sometimes it happens due to very large images. If you have such images, try to shrink'em and your app should run.
I'm using this online tool to shrink PNGs. It will shrink your image, while keeping it's quality.
Good luck!
Invalidate caches and restart worked for me.
In my case I added launch options end if i delete, run normaly
Funny enough none of the suggestions above worked for me. But it was resolved after I deleted my emulator's virtual image and recreated it.