android - 打开相机的权限被拒绝 - SDK29 - React Native Project
问题描述
将SDK改成29后,原来在28上正常打开的摄像头现在被拒绝权限了。
我的项目是在“react-native”中开发的:“0.59.9”。
以下是一些附加信息:
构建.gradle
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "28.0.0"
googlePlayServicesAuthVersion = "15.0.1"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
// ADD THIS
maven { url 'https://maven.google.com' }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
// ADD THIS
maven { url "https://jitpack.io" }
}
}
wrapper{
gradleVersion = '4.7'
distributionUrl = distributionUrl.replace("bin", "all")
}
警告:
我向正在阅读的任何人指出,我遵循了这篇文章https://www.reactnativeschool.com/how-to-upgrade-react-native-app-to-api-level-29的指导方针,但是,在过程 我遇到了相机问题。
有没有人遇到过这样的问题?他们会知道如何指导我如何进行吗?
解决方案
推荐阅读
- ruby-on-rails - 我无法在我的 Ruby on Rails 应用程序中集成 Bootstrap
- c# - 无法以 Windows-1252 编码写入文件,改为使用 UTF-8
- python - 无需在 Python 中写入磁盘即可加入 .wav 文件
- latex - 打破页面中的长算法
- python-3.x - 通过与一组项目进行比较的数据框的 GroupBy
- css - CSS:具有模糊效果的四个侧面的盒子阴影
- php - 为什么每次登录后的数据没有存储在我的数据库中?
- php - AJAX调用将数据导出到excel
- c# - 在 Polly 重试策略中重用 HttpRequestMessage
- python - 将 numpy digitize bin 列名匹配到输入列表