Update TROUBLESHOOTING.mdx
This commit is contained in:
parent
9d493ea2a5
commit
209540d134
@ -37,8 +37,14 @@ Before opening an issue, make sure you try the following:
|
|||||||
|
|
||||||
## Android
|
## Android
|
||||||
|
|
||||||
1. Since the Android implementation uses the not-yet fully stable **CameraX** API, make sure you've browsed the [CameraX issue tracker](https://issuetracker.google.com/issues?q=componentid:618491%20status:open) to find out if your issue is a limitation by the **CameraX** library even I cannot get around.
|
1. Try cleaning and rebuilding **everything**:
|
||||||
2. Make sure your minimum SDK version is **21 or higher**, and target SDK version is **30 or higher**. See [the example's `build.gradle`](https://github.com/cuvent/react-native-vision-camera/blob/main/example/android/build.gradle#L5-L9) for reference.
|
```sh
|
||||||
|
./android/gradlew clean
|
||||||
|
rm -rf package-lock.json && rm -rf yarn.lock && rm -rf node_modules
|
||||||
|
npm i # or "yarn"
|
||||||
|
```
|
||||||
|
2. Since the Android implementation uses the not-yet fully stable **CameraX** API, make sure you've browsed the [CameraX issue tracker](https://issuetracker.google.com/issues?q=componentid:618491%20status:open) to find out if your issue is a limitation by the **CameraX** library even I cannot get around.
|
||||||
|
3. Make sure your minimum SDK version is **21 or higher**, and target SDK version is **30 or higher**. See [the example's `build.gradle`](https://github.com/cuvent/react-native-vision-camera/blob/main/example/android/build.gradle#L5-L9) for reference.
|
||||||
1. Open your `build.gradle`
|
1. Open your `build.gradle`
|
||||||
2. Set `buildToolsVersion` to `30.0.0` or higher
|
2. Set `buildToolsVersion` to `30.0.0` or higher
|
||||||
3. Set `compileSdkVersion` to `30` or higher
|
3. Set `compileSdkVersion` to `30` or higher
|
||||||
@ -48,12 +54,12 @@ Before opening an issue, make sure you try the following:
|
|||||||
```
|
```
|
||||||
classpath("com.android.tools.build:gradle:4.1.2")
|
classpath("com.android.tools.build:gradle:4.1.2")
|
||||||
```
|
```
|
||||||
3. Make sure your Gradle Wrapper version is 6.5 or higher. In `gradle-wrapper.properties`, set:
|
4. Make sure your Gradle Wrapper version is 6.5 or higher. In `gradle-wrapper.properties`, set:
|
||||||
```
|
```
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
|
||||||
```
|
```
|
||||||
4. If you're experiencing weird behaviour, check the logs in Android Studio/Logcat (<kbd>⌘</kbd> + <kbd>6</kbd>) to find out more.
|
5. If you're experiencing weird behaviour, check the logs in Android Studio/Logcat (<kbd>⌘</kbd> + <kbd>6</kbd>) to find out more.
|
||||||
5. If a camera device is not being returned by `getAvailableCameraDevices()`, make sure it meets the minimum requirements - that is minum supported harwdware level of `LIMITED` and above. See [this section in the Android docs](https://developer.android.com/reference/android/hardware/camera2/CameraDevice) for more information.
|
6. If a camera device is not being returned by `getAvailableCameraDevices()`, make sure it meets the minimum requirements - that is minum supported harwdware level of `LIMITED` and above. See [this section in the Android docs](https://developer.android.com/reference/android/hardware/camera2/CameraDevice) for more information.
|
||||||
|
|
||||||
## Issues
|
## Issues
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user