首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在本机响应中运行时指纹触摸ID安装错误

在本机响应中运行时指纹触摸ID安装错误
EN

Stack Overflow用户
提问于 2022-03-23 08:43:12
回答 1查看 275关注 0票数 0

我遵循了这个文档链接,当我安装它的时候

npm i --save react-native-touch-idreact-native link react-native-touch-id

当我运行npx react原生运行-android时,我会得到这个错误。

如果有人能帮我这件事,那就太好了,提前谢谢你!

误差

代码语言:javascript
复制
error Failed to install the app. Make sure you have the Android 
development environment set up: 
https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug - 
PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-touch-id'.
> Could not resolve all artifacts for configuration ':react-native- 
touch-id:classpath'.
> Could not download kotlin-stdlib-jdk8-1.3.20.jar 
(org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.20)
  > Could not get resource 
'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib- 
jdk8/1.3.20/kotlin-stdlib-jdk8-1.3.20.jar'.
     > Could not GET 
'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib- 
jdk8/1.3.20/kotlin-stdlib-jdk8-1.3.20.jar'.
        > peer not authenticated
 > Could not download jimfs-1.1.jar (com.google.jimfs:jimfs:1.1)
  > Could not get resource 
 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'.
     > Could not HEAD 
 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'.
        > peer not authenticated
 > Could not download httpmime-4.5.2.jar 
 (org.apache.httpcomponents:httpmime:4.5.2)
  > Could not get resource`https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar.`
> peer not authenticated
EN

回答 1

Stack Overflow用户

发布于 2022-07-11 06:36:12

@Shainnah Jane,

嗨,Shainnah Jane,我有同样的问题,我认为是因为compileSdkVersion,因为库为我需要31版本,我使用的是30。当我通过compiledSdkVersion更新的时候,它对我起了作用。

回复自然:去你的根目录-> android -> build.gradle

更改compileSdkVersion 屏幕截图

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71584166

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档