zhz@1123 2019-12-07 02:31 采纳率: 0%
浏览 324
已结题

维护很久前的项目 莫名其妙的导入design

前几天维护一个很久前的项目,想转到安卓x,结果对jar包升级的时候有一个design一直存在,并且报错把jar包转移到新项目中也不会出现这个design
下面贴图图片说明

apply plugin: 'com.android.application'
apply plugin: "findbugs"

/*apply from: 'tinker-support.gradle'
apply plugin: 'packer'*/

task findbugs(type: FindBugs, dependsOn: 'assembleDebug') {
ignoreFailures = true
effort = "default"
reportLevel = "high"
println("$project.buildDir")
classes = files("$project.buildDir/intermediates/classes")
source = fileTree("src/main/java/")
classpath = files()
reports {
xml.enabled = false
html.enabled = true
xml {
destination file ("$project.buildDir/findbugs.xml")
}
html {
destination file("$project.buildDir/findbugs.html")
}
}
}
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileSdkVersion 29
buildToolsVersion "29.0.2"
sourceSets {
main {
jniLibs.srcDir 'libs'
}

    // Move the tests to tests/java, tests/res, etc...
    //instrumentTest.setRoot('tests')

    // Move the build types to build-types/<type>
    // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
    // This moves them out of them default location under src/<type>/... which would
    // conflict with src/ being used by the main source set.
    // Adding new build types or product flavors should be accompanied
    // by a similar customization.
    debug.setRoot('build-types/debug')
    release.setRoot('build-types/release')
}

defaultConfig {
    applicationId "com.goodlive.flying"
    minSdkVersion 21
    targetSdkVersion 29
    versionCode 20180228
    versionName "1.5.9"
    //versionName "1.5.2"正式版
    // Enabling multidex support.
    multiDexEnabled true
    ndk {
        // 设置支持的SO库架构
        abiFilters 'armeabi' , 'x86'//, 'armeabi-v7a', 'x86_64', 'arm64-v8a'
    }
}
dexOptions {
    javaMaxHeapSize "4g"
}
signingConfigs {
    release {
        storeFile file('.jks')
        storePassword ""
        keyAlias ""
        keyPassword ""
        // 满足下面两个条件时需要此配置
        // 1. Gradle版本 >= 2.14.1
        // 2. Android Gradle Plugin 版本 >= 2.2.0
        // 作用是只使用旧版签名,禁用V2版签名模式
        v2SigningEnabled false
    }
    debug {
        storeFile file('.jks')
        storePassword ""
        keyAlias ""
        keyPassword ""
    }
}
buildTypes {
    release {
        //启用混淆配置
        //Zip代码压缩优化

// zipAlignEnabled true
//移除无用资源
// shrinkResources true
// debuggable true
//加载默认混淆文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release

    }
    debug {
        //启用混淆配置
        minifyEnabled false
        //Zip代码压缩优化

// zipAlignEnabled true
//移除无用资源
// shrinkResources true
//debugs使用release签名 //加载默认混淆文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':PushSDK')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// implementation files('libs/SocialSDK_WeiXin_Full.jar')
//dagger2
implementation 'com.qianwen:update-app:3.3.3'
implementation 'com.lzy.net:okgo:3.0.4'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation ('com.google.android.material:material:1.0.0'){
exclude group: 'com.android.support'
}
implementation ('com.jakewharton:butterknife:8.1.0'){
exclude group: 'com.android.support'
}
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.mcxiaoke.gradle:packer-helper:1.0.9'
implementation ('com.github.bumptech.glide:glide:4.0.0-RC0'){
exclude group: 'com.android.support'
}
implementation 'com.tencent.bugly:crashreport_upgrade:1.4.2'
//w
implementation ('com.github.lygttpod:SuperTextView:1.0.7'){
exclude group: 'com.android.support'
}
implementation 'com.orhanobut:logger:1.15'
//w
implementation ('com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.13'){
exclude group: 'com.android.support'
}
implementation 'com.blankj:utilcode:1.3.1'
implementation 'cn.finalteam:galleryfinal:1.4.8.7'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.roughike:bottom-bar:2.0.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'io.reactivex:rxjava:1.2.1'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.trello:rxlifecycle-components:0.6.1'

implementation 'com.jakewharton.rxbinding:rxbinding:0.4.0'
implementation 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.3.0'
implementation 'com.jakewharton.rxbinding:rxbinding-design:0.3.0'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
implementation 'me.shaohui.advancedluban:library:1.3.3'
implementation 'com.dinuscxj:recycleritemdecoration:1.0.0'
implementation 'com.umeng.analytics:analytics:6.1.4'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.zhy:flowlayout-lib:1.0.3'
implementation 'com.afollestad.material-dialogs:core:0.9.4.5'


implementation 'com.google.dagger:dagger:2.11-rc2'
implementation 'se.emilsjolander:stickylistheaders:2.7.0'
testImplementation 'junit:junit:4.12'
implementation 'com.bigkoo:quicksidebar:1.0.3'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.1.0'
annotationProcessor 'com.google.dagger:dagger-compiler:2.11-rc2'
implementation 'com.github.razerdp:BasePopup:1.9.1'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation("com.github.hotchemi:permissionsdispatcher:3.1.0") {
    // if you don't use android.app.Fragment you can exclude support for them
    exclude module: "support-v13"
}
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"

}

求助大神啊
  • 写回答

1条回答 默认 最新

  • suwenlai 2019-12-09 14:26
    关注

    查一下依赖关系吧 排查一下看看 是那个里面添加了这个依赖 命令行 ./gradlew :app:dependencies

    评论

报告相同问题?

悬赏问题

  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常