Deploy the Android app. Missing installReleaseDebug task for gradle

I am trying to deploy the release of my application.

I will briefly tell you what I did:
I created a keystore file, set the properties in the build.gradle file to configure the release according to this documentation ( https://facebook.imtqy.com/react-native/docs/signed-apk-android. html ). I got an error after the command react-native run-android --variant release:

Task 'installReleaseDebug' not found in root project

My build settings:

android {
    ...
    signingConfigs {
        release {
            storeFile file("my-release-key.keystore")
            storePassword "myKeyStorePassword"
            keyAlias "my-key-alias"
            keyPassword "myKeyPassword"
        }
    }
    ...
    buildTypes {
        release {
            ...
            signingConfig signingConfigs.release
        }
    }
}

The team react-native run-androiddeploys the debug build of my application without any problems. I would welcome any help. Thank.

+4
source share
1 answer

Simply cd android && ./gradlew installRelease

+1

Source: https://habr.com/ru/post/1663420/


All Articles