安卓开发
南有-先生
做一名孤独的程序员
展开
-
安卓开发bug集(三)
1、You must supply a layout_height attribute.程序一开始跑的时候好好的,手残的不知道摁了啥,后面就跑不了,报错发现是没有layout_height属性,加上去就好了原创 2019-05-24 21:58:41 · 110 阅读 · 0 评论 -
安卓开发bug集(二)
Error: Invoke-customs are only supported starting with Android O (–min-api 26)解决方案:在gradle.build中添加以下内容:compileOptions {sourceCompatibility JavaVersion.VERSION_1_8targetCompatibility JavaVersion...原创 2019-04-15 22:45:43 · 152 阅读 · 0 评论 -
安卓开发之使用HTTP协议访问网络(一)
使用HttpURLConnectionAndroid 上发送HTTP请求一般有两种方式: HttpURLConnection 和 HttpClient 。Android 6.0系统将HTTPClient的功能移除了,所以学习HttpURLConnection。1.获取 HttpURLConnection实例URL url =new URL(“https://www.baidu.com”);...原创 2019-04-09 22:18:02 · 6736 阅读 · 0 评论