我正在尝试使用IntelliJ在USB设备上运行Android应用程序。
它开始然后它说:session“sessionname”;错误。
到目前为止,它已经在2个Android设备上运行了:(我得到的错误是:
01-30 14:20:01.160 522-522/? E/arm-runtime﹕ /mnt/sdcard is not mounted.
--------- beginning of /dev/log/system
01-30 14:20:02.030 519-519/? E/Netd﹕ Unable to create netlink socket: Protocol not supported
01-30 14:20:02.030 519-519/? E/Netd﹕ Unable to open quota2 logging socket
01-30 14:20:45.980 574-574/? E/dalvikvm﹕574 :: IS_UNIFIED_ARM_PROCESS=FALSE, debugFlags = 1
01-30 14:20:48.140 574-574/? E/BatteryService﹕ usbOnlinePath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryStatusPath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryHealthPath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryPresentPath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryCapacityPath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryVoltagePath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryTemperaturePath not found
01-30 14:20:48.140 574-574/? E/BatteryService﹕ batteryTechnologyPath not found
01-30 14:20:49.960 574-589/? E/SurfaceFlinger﹕ Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
01-30 14:20:51.490 574-588/? E/HdIpc﹕Connect failed err = -1 errno = 110 (ETIMEDOUT). Timeout log will be logged only once per process
01-30 14:21:28.410 521-521/? E/PhonePolicy﹕ Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
01-30 14:21:34.650 522-522/? E/PhonePolicy﹕ Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
如果有人愿意帮助我会非常高兴
答案 0 :(得分:0)
我在创建新活动时遇到了同样的错误,在xml文件中我命名了一个按钮buttonNew,而在NewActivity.java中我错误地输入了错误的按钮ID名称。 而不是写作:
newButton = (Button) findViewById(R.id.buttonNew);
我把
newButton = (Button) findViewById(R.id.newButton);
一旦我纠正了,一切都很好。
我想出了你必须非常小心并确保你有严格的命名惯例,否则你将永远迷失。
此致