美文网首页Android知识
android studio报错: error: Apostro

android studio报错: error: Apostro

作者: _ming_ming | 来源:发表于2016-07-02 15:06 被阅读94次

TextView控件常见问题

为了国际化需要,通常需要采用多种字体。

<TextView   
 android:text="@string/desc"   
 android:layout_margin="5dp"
 android:id="@+id/textView2"    
 android:layout_width="wrap_content"    
 android:layout_height="wrap_content"/>

    <string name="desc">We 're back with another Picasso transformation post. We are already shown you how to transform images in a previous post. There are a few implementations for Picasso transformations floating around on the Internet, but it is tedious work to find a good one for your need. In this blog post, we will show you how to integrate and use a collection of transformations.In case you want to catch up with previous Picasso topics, check out our extensive list of blog posts</string>

run后,报error: Apostrophe not preceded 的错误。

  • 解决办法一:
    手工去掉所有‘的字符,例如can't转换成can not,显然这样效率低下。
  • 解决办法二:
    使用转义字符,如We're...

相关文章

网友评论

    本文标题:android studio报错: error: Apostro

    本文链接:https://www.haomeiwen.com/subject/ywyqjttx.html