2017-04-10 76 views
1

我有錯誤,每當我嘗試啓動應用程序崩潰。 我嘗試了幾次使用虛擬和我的手機,但它仍然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> 
+0

您是否嘗試過重新啓動模擬器?你也可以發佈AndroidManifest.xml嗎? –

+0

@HororLT是的,我嘗試了幾次,並與我的手機一樣,清單張貼。謝謝 – hatched

+0

嘗試刪除intent-filter中的這一行: 正如我所看到的,您已將其聲明爲上面,因此不需要重複它。 –

回答

-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> 

+0

錯誤仍然在我身邊... – hatched

+0

也許嘗試禁用即時運行?文件→設置→構建,執行,部署→即時運行並取消選中啓用即時運行。 –

0

我類似的錯誤曾與做材料設計和顏色以某種方式干涉。從材質改變了風格的父主題,但保留了無操作欄並且工作正常。

0

我有同樣的問題。無論我是否使用調試模式或正常模式運行它,我仍然有同樣的問題。我通過禁用「即時模式」解決了這個問題。它的工作對我來說

+0

如何禁用「即時模式」?請回答那部分。 – user3705478

0

按照以下步驟

  1. 清理項目
  2. 去到工具
  3. 去到的Android
  4. 啓用ADB集成 它工作了我。
相關問題