小编Hye*_*ung的帖子

React Native CLI:Android 和 ios 设置问题

当我跑步时npx @react-native-community/cli doctor我收到这个警告。

\n
Android\n \xe2\x9c\x93 JDK\n \xe2\x9c\x93 Android Studio - Required for building and installing your app on Android\n \xe2\x9c\x96 Android SDK - Required for building and installing your app on Android\n   - Versions found: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0\n   - Version supported: .b31.0.0\n \xe2\x9c\x93 ANDROID_HOME\n\niOS\n \xe2\x9c\x93 Xcode - Required for building and installing your app on iOS\n \xe2\x9c\x93 CocoaPods - Required for installing iOS dependencies\n \xe2\x97\x8f ios-deploy - Required for installing your app on a physical …
Run Code Online (Sandbox Code Playgroud)

sdk simulator react-native

6
推荐指数
0
解决办法
403
查看次数

Android Studio 问题:找不到 com.google.android:cameraview:1.0.0

我一直面临这个问题。

我试过

1) ./gradlew clean -> npm i -> expo i

2)将此行添加到 build.graddle(:app)

    multiDexEnabled true
Run Code Online (Sandbox Code Playgroud)

3)将此行添加到 build.graddle(project)

    maven {
        url "$rootDir/../node_modules/expo-camera/android/maven"
    }
Run Code Online (Sandbox Code Playgroud)

但没有任何作用。

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.google.android:cameraview:1.0.0.
     Searched in the following locations:
       - file:/Users/hayat/.m2/repository/com/google/android/cameraview/1.0.0/cameraview-1.0.0.pom
       - https://dl.google.com/dl/android/maven2/com/google/android/cameraview/1.0.0/cameraview-1.0.0.pom
       - https://repo.maven.apache.org/maven2/com/google/android/cameraview/1.0.0/cameraview-1.0.0.pom
       - https://devrepo.kakao.com/nexus/content/groups/public/com/google/android/cameraview/1.0.0/cameraview-1.0.0.pom
     Required by:
         project :app > project :expo > project …
Run Code Online (Sandbox Code Playgroud)

android

5
推荐指数
1
解决办法
3650
查看次数

面向 S+(版本 31 及更高版本)要求在创建 PendingIntent 时指定 FLAG_IMMUTABLE 或 FLAG_MUTABLE 之一

我使用科特林语言。

我一直面临这个未决的意图错误。

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.chugnchunon.chungchunon_android, PID: 20394
    java.lang.RuntimeException: Unable to create application com.chugnchunon.chungchunon_android.GlobalApplication: java.lang.IllegalArgumentException: com.chugnchunon.chungchunon_android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
    Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6764)
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7872) …
Run Code Online (Sandbox Code Playgroud)

android kotlin firebase

5
推荐指数
2
解决办法
7108
查看次数

Prisma 日期时间格式 ( ISO 8601) 更改为奇怪的数字

我使用 PrismaDateTime模型字段来获取createdAt. 所以它会自动在我的数据库上标记 ISO 8601 格式。

2022-01-20T12:01:30.543Z

但是当我在我的应用程序上 console.log 这些数据时,它会变成奇怪的数字,例如1642680090542.

这是一个什么样的数字?

我怎样才能将其更改为正常日期?

graphql react-native prisma

1
推荐指数
1
解决办法
8626
查看次数

标签 统计

android ×2

react-native ×2

firebase ×1

graphql ×1

kotlin ×1

prisma ×1

sdk ×1

simulator ×1