升级到Android Studio 3.0.1用$ in NAME的字符串资源喜欢: <string name="$KEY$">value</string>
投掷错误
Error:(615, 3) error: resource 'string/$KEY$' has invalid entry name '$KEY$'. Invalid character '$KEY$'.
跟踪是:
agpbi:{" ank":" error"," text":"错误:资源 u0027String/$键$ u0027具有无效的条目名称 u0027 $键$ u0027。 无效字符 u0027 $键$ u0027。" StartColumn":2," StartOffset":60748," EndColumn":54," endoffset":60800}}],"原始":":",","工具":" AAPT"}
AAPT2默认情况下,当您将Android插件用于Gradle 3.0时。您可以通过在gradle.properties
android.enableAapt2=false
来解决问题