Android:客户端尚未准备就绪。正在等待流程上线
问题描述:
我收到以下错误;每当我尝试启动该应用程序时,它就会崩溃。
我已经使用模拟器和移动设备尝试了几次,但是仍然无法正常工作。
I am getting the error below; whenever I try to launch the app it crashes. I have tried a few times using an emulator and also using my mobile, but it still doesn't work.
我正在使用Firebase身份验证和数据库在项目中。尽管没有错误,但我想知道它是否对错误有影响吗?
I'm using Firebase auth and database in the project. Although there are no errors, I wonder if it has any affect on the error?
$ adb shell am start -n "com.example.juice.health/com.example.juice.health.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 3016 on device Nexus_5X_API_23 [emulator-5554]
Application terminated.
清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.juice.health">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".LoginActivity"/>
<activity android:name=".ProfileActivity"/>
<activity android:name=".EditProfileActivity"></activity>
</application>
</manifest>
答
在Android Studio中:文件->使缓存无效/重新启动
In Android-Studio : File -> Invalidate Caches / Restart
尝试一下