2017-06-16 10 views
1

私の問題はadbと関係があると思います。私は多くのオンラインで検索し、約4つの異なる方法をシャットダウンしようと何も役立たない。私はMacを使用しています。Android Studio、adbエラーの処理方法

06/16 16:36:06: Launching app 
$ adb push /Users/melloo/Desktop/UCI/Intro-to-Mobile-App-Development-with- 
Android/A2-Antoniya.Puleva/app/build/outputs/apk/app-debug.apk 
/data/local/tmp/x40240.antoniya.puleva.a2 
$ adb shell pm install -r "/data/local/tmp/x40240.antoniya.puleva.a2" 
pkg: /data/local/tmp/x40240.antoniya.puleva.a2 
Success 

$ adb shell am start -n 
"x40240.antoniya.puleva.a2/x40240.antoniya.puleva.a2.MainActivity" -a 
android.intent.action.MAIN -c android.intent.category.LAUNCHER 
Client not ready yet..Waiting for process to come online 
Connected to process 2983 on device Nexus_5X_API_22 [emulator-5554] 
Application terminated. 

と私のマニフェスト:

<?xml version="1.0" encoding="utf-8"?> 

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme" 
    android:launchMode="standard" 
    > 
    <activity android:name=".MainActivity" 
       android:label="List O'Names"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name=".NameListActivity" 
       android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name = "x40240.antoniya.puleva.intent.action.ACTION_VIEW" /> 
      <category android:name="android.intent.category.DEFAULT"/> 
      <data android:mimeType="text/plain"/> 
     </intent-filter> 
    </activity> 
</application> 

+0

?それはクラッシュしますか? Androidモニタータブにエラーがありますか? –

+0

Mateus、エミュレーターで、「アプリが停止しました」というメッセージが表示されます。もう一度実行しようとすると、停止することが示されます。 Android Monitorは絶対に何も表示しません。 –

+0

アプリがクラッシュしています。これは、通常、コードのエラーが原因です。 Androidモニターには何も表示されないことは非常に奇妙です。エミュレータからのログと、そのメッセージを受け取ったときのスタックトレースのエラーが表示されるはずです。そのタブのフィルタが正しいことを再度確認できますか?エミュレータとアプリが選択されていることを確認してください。 –

答えて

0

は、Androidを使用して、同様のエラーが発生しましたここに私は私のアプリを実行したときのAndroidメーカーの[実行]タブが言うことですStudio 3.0 Canary 3.以下のことを試してください:

  1. は、最新バージョンにあなたのAndroidメーカーを更新し、(API 25で新しいデバイスを作成してみ
  2. 私はあなたがロリポップ(API 22)とのエミュレータを使用している参照(あなたが3.0を使用している場合、カナリア4は昨日出てきました)ヌガー)
  3. マニフェストにいくつかの変更を行って試してみてください(空行を追加するように、ポイントだけでマニフェストファイルを変更することがある)、その後、ビルド - >クリーンプロジェクトを行って、もう一度それを実行します。アプリを実行したときに、正確に何が起こる
+0

Jan、私は上記のすべての手順を踏襲し、同じことが起こりました。これは過去5日間私を夢中にさせてくれました。 –

関連する問題