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'

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'
}
8

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!

1

Invalidate caches and restart worked for me.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest