我有錯誤,每當我嘗試啓動應用程序崩潰。 我嘗試了幾次使用虛擬和我的手機,但它仍然doesn; t工程Android:客戶端還沒有準備好..等待進程在線
我在項目中使用的Firebase身份驗證和數據庫,雖然沒有錯誤,我想知道它是否有任何影響錯誤。
$ 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>
您是否嘗試過重新啓動模擬器?你也可以發佈AndroidManifest.xml嗎? –
@HororLT是的,我嘗試了幾次,並與我的手機一樣,清單張貼。謝謝 – hatched
嘗試刪除intent-filter中的這一行: 正如我所看到的,您已將其聲明爲上面,因此不需要重複它。 –