Android:客户端尚未准备就绪..等待进程上线

hat*_*hed 10 android adb android-studio

我有错误,每当我尝试启动应用程序时它都会崩溃.我尝试了几次使用虚拟和我的手机,但它仍然没有

我在项目中使用firebase auth和数据库,虽然没有错误,我想知道它对错误有什么影响.

$ 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.
Run Code Online (Sandbox Code Playgroud)

清单:

<?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>
Run Code Online (Sandbox Code Playgroud)

小智 6

在Android Studio中:文件->使缓存无效/重新启动

试试吧


Hon*_* LT -1

好吧,在编辑清单之后,我不再收到此错误:

<?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"
        android:fullBackupContent="true">
        <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"/>
    </application>

</manifest>
Run Code Online (Sandbox Code Playgroud)