依赖和权限

这 是二维码需要的权限
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-feature android:name="android.hardware.camera" /> <!-- 使用照相机权限 -->
    <uses-feature android:name="android.hardware.camera.autofocus" /> <!-- 自动聚焦权限 -->

这是二维码使用的依赖

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

 

implementation 'com.squareup.okhttp3:okhttp:3.11.0'//okhttp的权限
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
implementation 'com.google.code.gson:gson:2.2.4'//gson权限
implementation 'com.amap.api:3dmap:5.4.0'
implementation 'com.amap.api:location:3.6.1'
implementation 'com.android.support:design:27+'
implementation 'com.android.support:recyclerview-v7:27+'
implementation 'com.github.bumptech.glide:glide:3.7.0'

 

 

 iplementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    implementation 'com.squareup.picasso:picasso:2.3.2'
    implementation 'com.android.support:recyclerview-v7:27+'
    implementation 'com.squareup.okhttp3:okhttp:3.11.0'
    implementation 'com.google.code.gson:gson:2.2.4'
    implementation 'com.android.support:design:27+'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    implementation files('libs/AMap3DMap_6.4.1_AMapSearch_6.1.0_20180906.jar')

 

 高德地图使用的依赖

//3D地图so及jar
    compile 'com.amap.api:3dmap:latest.integration'
    //定位功能
    compile 'com.amap.api:location:latest.integration'
    //搜索功能
    compile 'com.amap.api:search:latest.integration'

简单的网络连接需要

//简单的网络连接需要
implementation 'com.android.support:recyclerview-v7:27+'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.facebook.fresco:fresco:1.9.0'
implementation 'com.facebook.fresco:animated-gif:1.9.0'

implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.retrofit2:retrofit:+'
implementation 'com.squareup.retrofit2:converter-gson:+'

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

 //Rxjava2需要依赖
implementation 'io.reactivex.rxjava2:rxjava:+'
implementation 'io.reactivex.rxjava2:rxandroid:+'

//让retrofit支持Rxjava2
implementation 'com.squareup.retrofit2:adapter-rxjava2:+'

//支付权限

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

//支付依赖

//配置retrofit2.0
implementation 'com.squareup.retrofit2:retrofit:+'
implementation 'com.squareup.retrofit2:converter-gson:+'
//Rxjava2需要依赖
implementation 'io.reactivex.rxjava2:rxjava:+'
implementation 'io.reactivex.rxjava2:rxandroid:+'
//让retrofit支持Rxjava2
implementation 'com.squareup.retrofit2:adapter-rxjava2:+'
//支付宝支付
implementation(name: 'alipaySdk-15.5.7-20181023110917', ext: 'aar')
//微信支付
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.4'

屏幕适配配置这行代码就可以将图片配置成全屏,这只是针对华为手机的1440*2560的,其它的手机不知道支不支持,还没有去适配

android:scaleType="centerCrop"

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值