Closed jinqiupeter closed 7 years ago
Please follow this doc Generating Signed APK. You need setting up gradle variables.
ZAIQIUCHANG_RELEASE_STORE_FILE=my-release-key.keystore
ZAIQIUCHANG_RELEASE_KEY_ALIAS=my-key-alias
ZAIQIUCHANG_RELEASE_STORE_PASSWORD=*****
ZAIQIUCHANG_RELEASE_KEY_PASSWORD=*****
@jaggerwang Thanks for reply. I generated the key file and error was fixed. But I also got another error:
, which I fixed by changing the method from "protected" to "public":
Then another error showed up ^_^:
, to fix this one, I added:
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = false
}
to android/app/build.gradle and finally got everything working!
Maybe we should put what I went through in Known Issues or ReadMe?
Thank you again for sharing this wonderful project, I learned a lot from reading and refactoring your code. To all future visitors, I also recommend the tutorial courses by author @jaggerwang at React Native跨平台移动应用开发 , most of my questions and doubts are cleared from the sessions, especially those regarding caching on the client side.
Thanks for your suggestion. It already added to the known issues.
Just followed the instructions but failed, could you please take a look? thanks! here is the output:
and the screenshot: