最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React native android application has stopped - Stack Overflow

programmeradmin3浏览0评论

I've stuck with an android version of an application (this one with "Wele to React Native!" text). After this, I did exact steps as a documentation says. After build android version of this application, i copied signed version of APK file on my device and install it - when i'm trying to launch it then i receiving message "Unfortunately, FirstProject has stopped". Debug version of this application working fine. I've spent almost a week trying to run this, and i didn't find any solution. Do any one have any idea what i'm doing wrong?

Regards

I've stuck with an android version of an application (this one with "Wele to React Native!" text). After this, I did exact steps as a documentation says. After build android version of this application, i copied signed version of APK file on my device and install it - when i'm trying to launch it then i receiving message "Unfortunately, FirstProject has stopped". Debug version of this application working fine. I've spent almost a week trying to run this, and i didn't find any solution. Do any one have any idea what i'm doing wrong?

Regards

Share Improve this question asked Feb 15, 2016 at 10:16 Artur L.Artur L. 1781 gold badge2 silver badges7 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 10

I think the problem lies here. In the latest releases, pro guard is enabled by default. Try disabling it in android/app/build.gradle :

buildTypes {
  release {
      minifyEnabled enableProguardInReleaseBuilds
      proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  }
}

Change this :

def enableProguardInReleaseBuilds = true 

to this :

def enableProguardInReleaseBuilds = false 

Then run the steps again to create you APK.

Well, that's really not a lot of info to use.. but, if the difference is just debug ou signed, I would search for obfuscation problems in the signed version.

But this is just a wild guess. If you want to really get help you need to put the stack error here, as well as more info of the part of the code that crashes.

发布评论

评论列表(0)

  1. 暂无评论