For me, I had to check and then uncheck the box in
Preferences->Gradle->Offline work.
Then I got back online.
1、用TextView来加载Html标签语言的时候,发现
textView4.setMovementMethod(LinkMovementMethod.getInstance());
textView4.setText(Html.fromHtml(s1));
要先setMovementMethod,然后再去setText,不然标签语言就无法点击。
2、使用StateListDrawable的时候,每一个<item>标签,如果加了属性android:drawable,则会忽略包涵的<shape>标签,也就是说只有<item>标签的话,直接用
<item android:state_pressed="true" android:drawable="@color/colorBtnNormal">
就可以了。而如果想使用ShapeDrawable的话,<item>标签就不能有android:drawable属性,有android:state_xxx属性就可以了。不然系统不知道加载哪个属性。都是颜色等,优先加载<item>标签的drawable,忽略<shape>标签
3、ListView刷新相关第三方控件
https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh 这个刷新控件只有下拉刷新,没有下拉加载更多。
https://github.com/baoyongzhang/android-PullRefreshLayout 这个刷新控件只有下拉刷新,没有下拉加载更多。
https://github.com/bingoogolapple/BGARefreshLayout-Android 下拉刷新时,会出现响应事件被ListView占用,而无法传递给后面的Layout
https://github.com/Maxwin-z/XListView-Android
https://github.com/MarkMjw/PullToRefresh 这两个是XListView的扩展,还是会占用Header
http://blog.csdn.net/zhongkejingwang/article/details/38868463 最后还是用的这个
4、Gradle失败
问题:Error:Operation timed out. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
解决方案:http://stackoverflow.com/questions/21746087/does-android-studio-need-internet-connection-to-build-project
我这里是二楼的解决方法解决的
6 |
For me, I had to check and then uncheck the box in
Then I got back online. |
继续集成极光推送3.0.0,又出现了一个问题,编译运行的时候报错,提示Service和sdk里面的Service冲突,于是我删除了Service里面的android:process=":mult"然后编译通过了。