[ANDROID] Unfortunately "App" has stopped
See original GitHub issueHi,
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
repositories {
maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
}
buildscript {
repositories {
maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
}
dependencies {
classpath 'com.fivehundredpx:blurringview:1.0.0'
}
}
index.android.js
import {BlurView} from 'react-native-blur';
export default class TryBlur extends Component {
constructor() {
super()
this.state = {
viewRef: 0,
}
}
imageLoaded() {
this.setState({viewRef: findNodeHandle(this.refs.backgroundImage)})
}
render() {
return (
<Image
source={require('./bgimage.jpeg')}
style={styles.container}
ref={'backgroundImage'}
onLoadEnd={this.imageLoaded.bind(this)}>
<BlurView
blurRadius={15}
downsampleFactor={5}
overlayColor={'rgba(255, 255, 255, .25)'}
style={styles.blurView}
viewRef={this.state.viewRef}/>
<Text style={styles.welcome}>{`Blur component`}</Text>
</Image>
);
}
}
Could you help me to fix it ?
react-native version : 0.40 react-native-blur version : 2.0.0
Issue Analytics
- State:
- Created 7 years ago
- Comments:31 (7 by maintainers)
Top Results From Across the Web
8 Quick Ways to Fix “Unfortunately App Has Stopped” On ...
Restart your phone · Check for low storage and RAM · Update the Android system WebView app · Ensure the affected app is...
Read more >7 Ways to Fix 'Unfortunately, App Has Stopped' Error on ...
1. Restart Your Phone · 2. Force Stop the App · 3. Update the App · 4. Clear App Cache & Data ·...
Read more >How to Eliminate the "Unfortunately, App Has Stopped" ...
The “Unfortunately, App has stopped” message can also be caused by a corrupted SD card. To check, remove the SD card and try...
Read more >Fixed “Unfortunately App Has Stopped” Error On Android ...
How to Fix Unfortunately App Has Stopped Error on Android? List of Solutions: Restart Your Phone; Clear the Cache and Data; Reset the...
Read more >How to fix 'Unfortunately app has stopped' error on Android
How to Fix Unfortunately App Has Stopped Error on Android? Restart Your Phone. Clear the Cache and Data. Reset the App. Check for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll merge a PR as soon as it’ll be there 😃
Was getting the same unexpected quit for components using
react-native-blur
. It seems a critical step was removed from the Android Getting Started section. RenderScript is still used by BlurringView and needs to be included inandroid/app/build.gradle
.Here is the error message in
logcat
:Mix the following into your
build.gradle
:Albeit, the view does not blur, but that is my issue of not implementing a custom
component.android.js
. At least the view does not cause the app to crash.