我正在开发这个android apk,突然出现错误

问题描述 投票:0回答:1

我试图实现功能并在android上遇到错误,它在ios开发中运行良好,为推送通知和所有安装了多个依赖项

reactnative 0.70 版本有问题吗 我需要升级reactnative的版本吗

18 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.work:work-runtime:2.9.0' requires libraries and applications that
      depend on it to compile against version 34 or later of the
      Android APIs.

      :app is currently compiled against android-31.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 7.3.0 is 33.

      Recommended action: Update this project's version of the Android Gradle
      plugin to one that supports 34, then update this project to use
      compileSdkVerion of at least 34.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
termines which devices the app can be installed
      on).

我尝试解决更改 build.gradle 和版本降级和升级的错误,但仍然没有任何解决方案

android react-native cross-platform
1个回答
0
投票

你试过这个吗?

我有一个带有“react-native”的应用程序:“0.70.6”,它可以正常工作。

如果能分享更多代码就更好了

© www.soinside.com 2019 - 2024. All rights reserved.