Generate Signed APK in React Native

preview_player
Показать описание
Hello Friends

In this tutorial video, I will explain you how to generate Signed APK in React Native step-by-step
#react #reactnative #reactnativetutorial

Step 1 Generate a Signed Release Key file

Step 2 Setting up Gradle variables
MYAPP_RELEASE_KEY_ALIAS=demo
MYAPP_RELEASE_STORE_PASSWORD=demo*123#
MYAPP_RELEASE_KEY_PASSWORD=demo*123#

Step 3 Adding signing config to app's Gradle config
signingConfigs
{
release
{
{
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}

buildTypes
{
release
{

}
}

Step 4 Generating the APK
gradlew assembleRelease

If you like this video or have any suggestion, please write it into the comment section.


Рекомендации по теме
Комментарии
Автор

what if you aleady have a signingConfigs section
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}

Sometimes these tutorials assume only one perfect scenario. Should i replace the signingsConfig with this one? or leave the original one there? Or just copy the 'release' part into the original as the other one is debug. Also there is a debug and rlease section for builtTypes. Just copy the 'release' part into the buildTypes? I mean this was just a test project with the original reactt native homescreen. How does yours work with no problems and i get problems at every step?

Jeff-zcrr
Автор

BROOO you are my savior keep it up!!! Better than the react native documentation....

josephskaff
Автор

I have created Google sign-in on my project and also some forms...it works well on my emulator...but it's not running in APK file that installed on my phone....How can I fix this issue

Dhinesh__
Автор

Really awesome video... Found very useful...
Good work man...!!!

umersayyed
Автор

I followed the tutorial and works perfectly fine. Thanks a lot

mayurkode
Автор

very nice
can make a tutorial on general apk, to check the app in other android mobile phone

chinnii_chiinnii
Автор

help me; there is error message (The term 'react-native' is not recognized) when i type 'react-native run-android'

mrm
Автор

Cannot run program "node" error when running gradlew assembleRelease. even though the gradlew file is right there in my android folder it doesn't recognize it so i ran it from a regular cmd window and then i get this error. If your gradlew doesn't work. try ./gradlew assembleRelease

Jeff-zcrr
Автор

Your videos are so clear well explained

Автор

after typing gradlew assembleRelease
i am facing this issue

gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.

gauravmavani
Автор

Now version is changed 6.X. So Build.gradle file changed. I am confusing can you please do latest signed apk. Please ?

nikhilroyal
Автор

im having this error
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

in windows 10

awsoct
Автор

hello sir, I'm facing a problem plz help me. the problem is
Failed to read key my-key-alias from store Invalid keystore format

sumitnain
Автор

keytool : The term 'keytool' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1
+ keytool -genkey -v -keystore debug.keystore -storepass android -alias ...
+
+ CategoryInfo : ObjectNotFound: (keytool:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I'm facing this error kindly help me with this.

rajanayel
Автор

Hello sir i follow the step but i face Duplicate resources Error Please help

poojapatidar-dn
Автор

Failed to read key demo from store Invalid keystore format.

Getting this, can you please assist me on this? Did I do miss anything?

junaidameen
Автор

when run this command "react-native run-android" apk is created in folder
but this apk installed in other device getting error, that is "couldn't connect development serve"
how can I solve please help

chinnii_chiinnii
Автор

How can I generate SHA1 key from release keystore?

BiswajitMaity-ckxg
Автор

how to build apk share to other device run on successfully. pls help me🙏🙏🙏🙏🙏🙏🙏🙏

redlin
Автор

completed the entire series.
can you make a video on how to install custom packages?
Thank you!

jayarammanikumar