解决办法:error: inner element must either be a resource reference or empty.

  今天在linux上编译代码,结果出错了:

error: inner element must either be a resource reference or empty.

看看代码:

    
        192.167.0.151
        1883
    

  从意思来看,要求item内,要么是引用别的资源,要么是空。这样意思更严格。改成:

    192.167.0.151
    1883

    
        @string/mqtt_host_name
        @integer/mqtt_host_port
    

 

你可能感兴趣的:(Android,Android,Studio/Eclipse)