AndroidFire项目加载视频出现网络访问错误,请稍后再试

qq_2548101507 2019-08-06 10:09:01
build.gradle文件:
apply plugin: 'com.android.application'
def releaseTime() {
return new Date().format("yyyyMMdd", TimeZone.getTimeZone("UTC"))
}

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'

defaultConfig {
applicationId "jaydenxiao.com.androidfire"
minSdkVersion 15
targetSdkVersion 26
versionCode 4
versionName "1.0.3"
}
buildTypes {
release {
buildConfigField "boolean", "LOG_DEBUG", "false"
//混淆
minifyEnabled true
//Zipalign优化
zipAlignEnabled true
// 移除无用的resource文件
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//apk命名
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
//这里修改apk文件名
def fileName = "AndroidFire-${defaultConfig.versionCode}-${defaultConfig.versionName}-${releaseTime()}.apk"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
}
debug{
buildConfigField "boolean", "LOG_DEBUG", "true"
minifyEnabled false
zipAlignEnabled false
shrinkResources false
}
}
//设置虚拟机堆内存空间大小,避免在编译期间OOM
dexOptions {
incremental true
javaMaxHeapSize "4g"
}
//打包不检查
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile project(':library:photoPicker')//图片选择
compile project(':library:irecyclerview')//万能适配器和recyclerview
compile project(':library:oneKeyShareSDK')//分享
compile project(':library:jcvideoplayer')//播放
compile project(':library:selectordialog')//常用提示框


}
出现的问题:在于视频那一个板块,有热点、娱乐、搞笑和精品4种视频标签,有时候能够加载出来,但是大多数加载不出来,显示network error,try again


...全文
22 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧