萤石Android SDK 集成到AndroidStudio的时候报错,Tag attribute name has invalid character ' '.

Error:(41) Tag <activity> attribute name has invalid character ' '.
Error:(51) Tag <action> attribute name has invalid character ' '.

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android\sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
Information:Total time: 1.965 secs
Information:3 errors

Information:0 warnings


报错原因:


在官方的guide 里面的Activity 里面多了两个空格,这个就是引起这个报错的原因:

萤石Android SDK 集成到AndroidStudio的时候报错,Tag <activity> attribute name has invalid character ' '._第1张图片



萤石Android SDK 集成到AndroidStudio的时候报错,Tag <activity> attribute name has invalid character ' '._第2张图片


解决办法:


删除掉这两个多余的空格就可以了。


你可能感兴趣的:(萤石Android SDK 集成到AndroidStudio的时候报错,Tag attribute name has invalid character ' '.)