java.lang.RuntimeException: Unable to start activity ComponentInfo{com..KITIL/com..KITIL.MapsActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at a
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class fragment
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class fragment
Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment: calling Fragment constructor caused an exception
当我运行此脚本时,它将被阻止并杀死。 “ SERVER”是主机名列表; 请帮助我看看为什么,我的代码有什么问题。 错误消息如下:
#!/bin/bash
SERVERS="master slave1 slave2 slave3"
for SERVER in $SERVERS
do
expect -c "set timeout -1;
spawn ssh hadoop@$SERVER;
expect {
*(yes/no)* {send -- yes\r;exp_continue}
*assword:* {send -- hadoop\r;exp_continue}
*$* {send -- \"echo 'ssss'\r\";exp_continue}
*$* {send -- exit\r;exp_continue}
eof {exit;0}
}";
done