-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ANDROID] Unfortunately "App" has stopped #156
Comments
I may have a similar problem, running "react-native": "^0.41.2" and "react-native-blur": "^2.0.0"
I'm able to get it to work in debug mode by adding: android/app/build.gradle
and changing in but then when assembling release I get:
|
Was getting the same unexpected quit for components using Here is the error message in
Mix the following into your
Albeit, the view does not blur, but that is my issue of not implementing a custom |
I also upgraded my Android Gradle Plugin to 1.5.0 in
|
any solution ? |
Yes, solution is to add RenderScript config to Gradle. It needs to be compiled in. |
@FullstackJack can you elaborate, please? I'd like to close this bug asap, but my Android skills sucks. |
@FullstackJack does your setup also work for assembleRelease? in android/app/build.gradle- android.defaultConfig, respectively
and
and android/build.gradle - buildscript.dependencies: I still get this error:
|
Any estimation to fix this bug ? |
I'll merge a PR as soon as it'll be there :) |
+1 |
1 similar comment
+1 |
Guys, +1 doesn't really help the situation. We need someone with solid Android skills to take a look on the problem. It's not about me being lazy to implement a fix. |
maybe @cmcewen have a time to take a look? |
We're experiencing this in the ReactConf2017 companion app which is open source, so here's a fairly clean reproduction case if that helps with the fix at all. Just toggle the comments to re-enable BlurView on android and you'll experience the issue. |
@blargity android BlurView doesn't accept any children, which is causing your issue |
@bhses why don't you change the target api to be the same for both? also it looks like the error is due to duplicating a png file?
|
Is everyone adding the RenderScript configuration to their Gradle and
changing Gradle version to the one I used? RenderScript support is not
enabled by default, you have to specify it. Not sure what is not clear
about that, if you dig into the dependencies, you can clearly see the
Android library that actually handles blurring requires it to be enabled.
I would make an attempt to fix it in the library, but I want to be able to
test it in the example app. Unfortunately, I couldn't get the example
working with the latest version of React which is the only version that
matters to me. The example needs a rewrite in latest React with latest of
the library too.
…On Mar 10, 2017 6:44 AM, "Connor McEwen" ***@***.***> wrote:
@bhses <https://github.com/bhses> why don't you change the target api to
be the same for both?
also it looks like the error is due to duplicating a png file?
Unknown source file : /(...)/(...)/android/app/build/intermediates/res/merged/release/drawable-xxhdpi-v4/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png: Original is here. The version qualifier may be implied.```
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC7PUc6NCyNca6Tg5PnSKrAXurcH1fNyks5rkWHGgaJpZM4L-Lvi>
.
|
@FullstackJack @cmcewen |
@cmcewen |
I am also experiencing this problem |
Any progress on this issue? |
Any progress? I'm really interested in using this for Android too.
I'm not really an Android dev(more iOS), but is this referring to what the guys were referring to in regards to Android's BlurView not accepting any children? |
@Naoto-Ida Correct, on Android, BlurView should not contain children. You can put the BlurView inside the Image or View you want to blur. You need to pass around the refs to get it to work and the view you want to blur must have finished rendering before applying the effect (after image load or after component mount). I was worried about style flash, but it happens very quickly. See the example https://github.com/react-native-community/react-native-blur/blob/master/examples/Basic/index.android.js |
None of them working to me. |
got the same problem too |
@Fantasim |
@anhtuank7c i need to blur dynamic image :/ |
This is because renderscript mode is disabled . Add below configs in android/buld.gradle to enable it defaultConfig { |
@tslearn I don't think it's that simple.
But it's still not working for me. I guess some Java code just needs to be updated to get it working with the latest React Native. |
I've pushed a fix for Android: #173 You can try it out now by adding this to your
Then make sure you update your Gradle version (at least |
Hi,
i'm currently trying to implement react-native-blur on my android app but at start app crash.
I applied the steps of android installation in the README,
android/app/build.gradle
index.android.js
Could you help me to fix it ?
react-native version : 0.40
react-native-blur version : 2.0.0
The text was updated successfully, but these errors were encountered: