openedx/edx-app-android

Issues in upgarding to Android Studio v2.3

miankhalid opened this issue · 1 comments

Problem

After upgrading Android Studio to v2.3.x and with it the various libraries, we have been encountering the following error:

Error:Execution failed for task ':OpenEdXMobile:validateSigningDevRelease'.

Keystore file /$HOME/edx-app-android/OpenEdXMobile/edx-android-release-key.keystore not found for signing config 'releasekey'.

Solution

  1. Change the build variant to devDebuggable.

screen shot 2017-07-25 at 4 31 37 pm

  1. Following any steps from the ones mentioned below would work:

    • Sync project with gradle files. (Press the Try Again button) screen shot 2017-07-25 at 4 32 38 pm

    • Clean the project (Build --> Clean from Android Studio's top menu bar) screen shot 2017-07-26 at 4 00 33 pm

    • Adding a gradle.properties file with no content at the root of project i.e. under the OpenEdXMobile folder with nothing in it also solves this problem.

  2. Refresh all Gradle projects. (View -- > Tool Windows --> Gradle from Android Studio's top menu bar) [By pressing the blue recycle icon in the snapshot below]

screen shot 2017-07-25 at 4 32 58 pm

Marking this as resolved.