Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Coding the Fun Facts Introduction to Arrays

Kartik Gupta
Kartik Gupta
6,454 Points

Unable to run APP

Upon running the app in android studio using the emulator , I get the following error

"Installation failed since the APK was either not signed, or signed incorrectly. If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script."

1 Answer

Hi Kartik,

I'd recommend cleaning your project, and build -> rebuild project. If that doesn't help, it may be a problem with your signing configuration.

Kartik Gupta
Kartik Gupta
6,454 Points

I have already tried the rebuilding thing... Can u tell do I have to create some unique signing configuration or is there a way to automatically generate it...

You could try;

android {

    signingConfigs {

        release {

            storeFile file('android.keystore')
            storePassword "pwd"
            keyAlias "alias"
            keyPassword "pwd"
        }
    }

    buildTypes {

       release {

           signingConfig signingConfigs.release
       }
    }
}