React Native 0.35
Gradle 2.14.1
Use 'gradlew assembleRelease'
FAILURE锛欱uild faild with an exception
Unable to process incoming event 'ProgressComplete'
RN0.33 is OK
I think this is missing enough information to reproduce the problem. Like is it specific to your app, or does react-native init also not work for you. If you can't reproduce the problem then you might want to try Stack Overflow. I'm going to close this but if you have a sample project that this happens for or some sort of repro like that then feel free to open a new issue.
I have the same problem in react-native 0.37.0.
I know you'd need more info to debug it properly, but just thought I'd mention it to confirm that the issue still exists in later versions. (I might take the time to make a repro project later)
I had the same problem with RN 0.43, oddly enough running android/gradlew.bat assembleRelease and then installRelease separtely worked
For the record, I had this error twice on RN 0.43.4 today, running the release command below:
.\gradlew assembleRelease
(snip)
Scanning 656 folders for symlinks in D:\~MY_PROJECT_ROOT~\client\node_modules (37ms)
Scanning 656 folders for symlinks in D:\~MY_PROJECT_ROOT~\node_modules (45ms)3% > :app:bundleReleaseJsAndAssets
Loading dependency graph, done.
warning: the transform cache was reset.
WARN: Output exceeds 32000 characters
bundle: start
bundle: finish
bundle: Writing bundle output to: D:\~MY_PROJECT_ROOT~\android\app\build\intermediates\assets\release\index.android.bundle
bundle: Copying 11 asset files
bundle: Done writing bundle output
bundle: Done copying assets
FAILURE: Build failed with an exception.
* What went wrong:
Unable to process incoming event 'ProgressComplete ' (ProgressCompleteEvent)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
However
.\gradlew assembleRelease --console plain
worked without problem. Hope this workaround helps someone in need.
System: Windows 10
I tried this: .\gradlew assembleRelease --console plain but when I installed the apk, it says at the end "App Not Installed". What could have gone wrong?
@vvavepacket I've also encountered this error. Deleting debug build of the app before installing release build helped in my case.
I had the same problem with RN 0.49, when i run this command gradlew assembleRelease then i had this error:
:app:bundleReleaseJsAndAssets
Scanning folders for symlinks in C:\Users\Khurram\HelloWorld\node_modules (47ms)
Sc
anning folders for symlinks in C:\Users\Khurram\HelloWorld\node_modules (53ms)
Loading dependency graph, done.
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: C:\Users\Khurram\HelloWorld\android\app\build\int
ermediates\assets\releaseindex.android.bundle
bundle: Done writing bundle output
bundle: Copying 7 asset files
bundle: Done copying assets
FAILURE: Build failed with an exception.
What went wrong:
Unable to process incoming event 'ProgressComplete ' (ProgressCompleteEvent)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
For me, deleting previously signed APK (app-release.apk) from \android\app\build\outputs solved the problem
@zenyr Your solution worked. But i am new to mobile app dev so i don't know why it worked. Can you give some explanation?
react-native 0.50.4
./android/build.gradle > buildscript > dependencies:
classpath 'com.android.tools.build:gradle:2.3.3'
./android/gradle/wrapper/gradle-wrapper.properties > distribution url:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
solved with gradlew assembleRelease --console plain
@wyz1 My wild guess is that some console output pipe somehow gets clogged between gradlew and colorized node processes. AFAIK --console plain disables special color characters in the output.
killl metro bundler
no error
In visual studio code, click on the kill terminal on the top right corner. Then open a new terminal.
I meet the same issue on RN:0.54.4 & gradle:3.3. I recommend this cmd gradlew assembleRelease --stacktrace. It works for me.
Most helpful comment
For the record, I had this error twice on RN 0.43.4 today, running the release command below:
.\gradlew assembleReleaseHowever
.\gradlew assembleRelease --console plainworked without problem. Hope this workaround helps someone in need.
System: Windows 10