Warning: Cannot display lunch menu.
aosp源代码更新到android-14.0.0_r29(Build ID:AP1A.240305.019.A1)或更新版本,lunch会失败,
123456789101112tangorpro14$ lunchYou're building on Linux**Warning: Cannot display lunch menu.**Note: You can invoke lunch with an explicit target:usage: lunch [target]Which would you like? [aosp_cf_x86_64_phone-trunk_staging-eng]Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-trunk_staging-eng):
查看./build/envsetup.sh ,
这个选择列表是有脚本函数get_build_var COMMON_LUNCH_CHOICES来生成,在命令行里执行 ...
Redundant Character Escape '\\/' in RegExp
Redundant Character Escape ‘\/‘ in RegExp正则表达式的转义字符反斜杠 \总是不好理解,因为字符串本身会先转义一次。
上面的Android Studio的经过意思是说在正则表达式中使用 ‘\\/‘ 是多余的,因为字符串 “\\/”转义之后是 \/ ,而正则表达式匹配的时候 \/ 等价于 /
Matching Characters如果需要匹配字符 \ 这两个字符 ,标准的匹配字符串是 “\\\\” ,首先经过字符串的转义,正则表达式使用的才是 \\ 。
因此匹配一个反斜杠和一个正斜杠 \/ 的写法就有两种:
“\\\\/”
“\\\\\\/” 编辑器会提示Redundant Character Escape
Test Program123456789101112131415161718String inputStr=":android\\/data";Pattern PATTERN_BLOCK_PATH = Pattern.compile(& ...
