我是 Kotlin 应用程序开发的初学者。当我尝试构建应用程序时发生以下错误 -
e: C:/Users/Lenovo/.gradle/caches/transforms-2/files-2.1/32f0bb3e96b47cf79ece6482359b6ad2/jetified-kotlin-stdlib-jdk7-1.5.0.jar!/META-INF/kotlind-modulestd_kotlind : 模块是用不兼容的 Kotlin 版本编译的。其元数据的二进制版本为 1.5.1,预期版本为 1.1.16
是关于更新模块吗?那怎么更新呢?
我已经关注了这个 - How to install node.tar.xz file in linux
最后在执行 node --version 时我收到这些错误 -
接下来应该做什么?无法找到适合我的场景的正确步骤。
我无法弄清楚这个警告指的是什么。这是怎么触发的?
Android Studio is using the following JDK location when running Gradle:
C:\Program Files\Android\Android Studio\jre
Using different JDK locations on different processes might cause Gradle to
spawn multiple daemons, for example, by executing Gradle tasks from a terminal
while using Android Studio.
More info...
Select a JDK from the File System
Do not show this warning again
Run Code Online (Sandbox Code Playgroud)
正确做事的解决方案或步骤是什么?
我制作了我的应用程序的基本版本,其中包括 Firebase 身份验证,在将应用程序与 Firebase 连接之前,我在 Android 模拟器中测试了该应用程序。我收到以下错误,然后我自己修复了一些东西。
- 连接了火力基地 -
添加了依赖项
classpath 'com.google.gms:google-services:4.2.0'
仍然遇到以下错误 -
/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.bottomnav, PID: 2049
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bottomnav/com.example.bottomnav.login}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.bottomnav. Make sure to call FirebaseApp.initializeApp(Context) first.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this …Run Code Online (Sandbox Code Playgroud) 我试图在底部选项卡导航器上方显示一个媒体播放器,就像在 Spotify 应用程序中一样。它应该在所有屏幕(底部选项卡)上保持相同的状态。
有什么建议或方法可以在 React Native 中实现这一点吗?
react-native react-native-navigation react-navigation-bottom-tab