logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

The given artifact contains a string literal with a package reference ‘android.support.v4.-ButterKni

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be

#android#gradle
项目编译不通过,import org.apache.http.HttpResponse; 报错

项目编译不通过检查:一、当前项目使用的sdk 版本,是否下载了。右击项目—— properties——android ——project build target   选择一个本地下载好的sdk 版本。比如选择Android 6.0 - 23。二、修改 AndroidManifest.xml  文件  targetSdkVersion 版本号<uses-sdka

android o android8.0 startforegroundservice startforegroundservice() did not then call service.star

解决context.startforegroundservice() did not then call service.startforeground()原因:Android 8.0 系统不允许后台应用创建后台服务,故只能使用Context.startForegroundService()启动服务创建服务后,应用必须在5秒内调用该服务的startForeground()显示一条可见通知,声明有服

到底了