androidstudio需要的权限依赖

本文档列举了Android开发中常用的依赖库及其版本,并提供了部分应用权限的配置示例,涉及图片加载、网络请求、轮播图等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Recyclerview框boderleft

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
 

    <stroke
        android:width="0.02dp"
        android:color="#e2dede" />

</shape>

compile 'com.xhb:xbanner:1.2.2'

compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
    //Rxjava
      compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
      compile 'io.reactivex.rxjava2:rxjava:2.1.7'
      compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'


butterknife依赖

 compile 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'


zxing二维码

compile 'cn.yipianfengye.android:zxing-library:2.1'

OkHttpClient依赖的架包: 
compile 'com.squareup.okhttp3:okhttp:3.4.1'

XListView的依赖包
compile 'com.github.ForgiveAll:Xlistview:v1.0'
maven{url'https://jitpack.io'}

imageLoader的依赖包
'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

二维码依赖包:
compile 'com.github.jwkj:LibZXing:v1.0.4'
maven { url 'https://jitpack.io' }
http://blog.youkuaiyun.com/qq137722697/article/details/740解决.Jar文件打不开
https://www.waitalone.cn/win10-jar-open.html

自动轮播图框架的依赖:
compile 'com.youth.banner:banner:1.4.9' 

自动轮播图的权限:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
<com.youth.banner.Banner
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="200dp" />

RecyclerView 的依赖:
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'

SimpleDraweeView加载图片的依赖:
compile 'com.facebook.fresco:fresco:1.5.0'

interceptor的依赖:
compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'

Gson 的依赖:
compile 'com.google.code.gson:gson:2.4'

Banner的依赖:
compile 'com.youth.banner:banner:1.4.10'

Fresco依赖:

compile 'com.facebook.fresco:fresco:1.5.0'


购物车需要的所有依赖

compile 'com.squareup.okhttp3:okhttp:3.9.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'org.greenrobot:eventbus:3.1.1'

xrecyclerview依赖
compile 'com.jcodecraeer:xrecyclerview:1.3.2' 
uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
//获取设备网络状态,禁用后无法获取网络状态
<uses-permission android:name="android.permission.INTERNET" />
//网络权限,当禁用后,无法进行检索等相关业务
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
//读取设备硬件信息,统计数据
<uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
//读取系统信息,包含系统版本等信息,用作统计
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
//获取设备的网络状态,鉴权所需网络代理
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
//允许sd卡写权限,需写入地图数据,禁用后无法显示地图
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
//获取统计数据
<uses-permission android:name="android.permission.GET_TASKS" />
//鉴权所需该权限获取进程列表
<uses-permission android:name="android.permission.CAMERA" />

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值