空新的android项目错误

时间:2015-06-05 08:44:07

标签: android

我用android studio创建了一个新项目,我尝试使用Samsung Ace 3调试它。我在logcat中遇到了很多错误,但我不知道该尝试什么。我尝试更改清单,以便定位SDK为18,最小值为15,最大值为21.

06-05 09:19:26.220      281-281/? E/SMD﹕ DCD ON
06-05 09:19:28.112    3328-4769/? E/dalvikvm﹕ Could not find class 'android.telephony.CellIdentityWcdma', referenced from method com.google.android.gms.herrevad.h.f.a
06-05 09:19:28.112    3328-4769/? E/dalvikvm﹕ Could not find class 'android.telephony.CellInfoWcdma', referenced from method com.google.android.gms.herrevad.h.f.a
06-05 09:19:28.142    3328-4769/? E/dalvikvm﹕ Could not find class 'android.telephony.CellInfoWcdma', referenced from method com.google.android.gms.herrevad.h.k.f
06-05 09:19:29.223      281-281/? E/SMD﹕ DCD ON
06-05 09:19:29.914    4810-4810/? E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
06-05 09:19:32.226      281-281/? E/SMD﹕ DCD ON
06-05 09:19:35.219      281-281/? E/SMD﹕ DCD ON
06-05 09:19:35.419    4362-4362/? E/MTPPlaObsrvr﹕ On change is called.false
06-05 09:19:35.419    4362-4362/? E/MTPPlaObsrvr﹕ URI of the playlistcontent://media/external/audio/playlists
06-05 09:19:35.469    4362-4362/? E/MTPPlaObsrvr﹕ Count2mCount2
06-05 09:19:35.469    4362-4362/? E/MTPPlaObsrvr﹕ Neither deleted nor added. Could be rename
06-05 09:19:35.469    4362-4362/? E/MTPPlaObsrvr﹕ It is not renamed
06-05 09:19:35.469    4362-4362/? E/MTPPlaObsrvr﹕ The DB is renamed.
06-05 09:19:35.469    4362-4362/? E/MTPPlaObsrvr﹕ playlist path before updatePlaylistPath
06-05 09:19:35.480    4362-4362/? E/MTPPlaObsrvr﹕ playlist is not renamed & m3u case
06-05 09:19:37.372    1412-1412/? E/AuthorizationBluetoothService﹕ Proximity feature is not enabled.
06-05 09:19:38.222      281-281/? E/SMD﹕ DCD ON
06-05 09:19:40.335    1412-1412/? E/AuthorizationBluetoothService﹕ Proximity feature is not enabled.
06-05 09:19:40.875    3328-4994/? E/WakeLock﹕ callingPackage is not supposed to be empty for wakelock Config Service fetch!
06-05 09:19:41.226      281-281/? E/SMD﹕ DCD ON
06-05 09:19:41.386    1412-1412/? E/AuthorizationBluetoothService﹕ Proximity feature is not enabled.
06-05 09:19:44.229      281-281/? E/SMD﹕ DCD ON
06-05 09:19:45.500    4362-4362/? E/MTPPlaObsrvr﹕ On change is called.false
06-05 09:19:45.500    4362-4362/? E/MTPPlaObsrvr﹕ URI of the playlistcontent://media/external/audio/playlists
06-05 09:19:45.550    4362-4362/? E/MTPPlaObsrvr﹕ Count2mCount2
06-05 09:19:45.550    4362-4362/? E/MTPPlaObsrvr﹕ Neither deleted nor added. Could be rename
06-05 09:19:45.550    4362-4362/? E/MTPPlaObsrvr﹕ It is not renamed
06-05 09:19:45.550    4362-4362/? E/MTPPlaObsrvr﹕ The DB is renamed.
06-05 09:19:45.560    4362-4362/? E/MTPPlaObsrvr﹕ playlist path before updatePlaylistPath
06-05 09:19:45.560    4362-4362/? E/MTPPlaObsrvr﹕ playlist is not renamed & m3u case
06-05 09:19:47.232      281-281/? E/SMD﹕ DCD ON
06-05 09:19:49.464    5083-5108/? E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.e.b
06-05 09:19:50.235      281-281/? E/SMD﹕ DCD ON
06-05 09:19:53.228      281-281/? E/SMD﹕ DCD ON
06-05 09:19:55.361    1274-1274/? E/CscFactoryReceiver﹕ onReceive android.intent.action.MEDIA_SCANNER_FINISHED
06-05 09:19:55.381    1274-1274/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
06-05 09:19:55.381    1274-1274/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
06-05 09:19:55.381    1274-1274/? E/CscUpdateService﹕ costomer file is exists : it has been preconfiged.
06-05 09:19:55.391    1274-5224/? E/CscParser﹕ update(): xml file exist
06-05 09:19:55.401    1274-5226/? E/CscParser﹕ update(): xml file exist
06-05 09:19:55.411    1274-5225/? E/CscParser﹕ update(): xml file exist
06-05 09:19:56.232      281-281/? E/SMD﹕ DCD ON
06-05 09:19:57.163    1496-1496/? E/BluetoothA2dpServiceJni﹕ Failed for on Track changed response, status: 2
06-05 09:19:57.163    1496-1496/? E/BluetoothA2dpServiceJni﹕ Failed for on play state changed response, status: 2
06-05 09:19:57.473    1496-1496/? E/BluetoothA2dpServiceJni﹕ Failed for on Track changed response, status: 2
06-05 09:19:57.513    1496-1496/? E/BluetoothA2dpServiceJni﹕ Failed for on play state changed response, status: 2

1 个答案:

答案 0 :(得分:0)

您将看到整个设备的logcat(所有其他应用/服务)。要仅查看项目的logcat,请将logcat过滤器(通常在右侧的下拉列表)设置为:

  

“仅显示所选应用程序”

然后,您的logcat窗口应仅显示与您的应用相关的行。

更多信息

如果您还没有,请确保您已遵循Google的Getting Started教程。具体来说,请参阅Running Your App

确保您的设备已连接,ADB正在运行,并且您已从菜单中选择了“运行'应用程序”(应用程序应加载到您的设备上,而不是模拟器上。)

如果你已经完成了所有这些,你应该在底部窗口看到logcat,并且应该有过滤输出的选项。如果您没有在右侧看到“仅显示选定的应用程序”,则您的Android Studio平台/版本可能与我的不同。无论哪种方式,您仍然可以创建手动过滤器。

有关如何设置过滤器的详细信息,请参阅thisthis