Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
一些输入文件使用或覆盖android studio 3.0中不推荐使用的API_Android - Fatal编程技术网

一些输入文件使用或覆盖android studio 3.0中不推荐使用的API

一些输入文件使用或覆盖android studio 3.0中不推荐使用的API,android,Android,我已经更新了我的gradle版本4.4,然后构建了我的apk it show me错误 Error:Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':a

我已经更新了我的gradle版本4.4,然后构建了我的apk it show me错误

Error:Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
在这个错误之后,我在默认设置中添加了-
Xlint:unchecked
>>Java编译器>>其他命令行参数(文本框)

但它不能解决,所以请帮我解决它

我的app.gradle文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.ejobbox.ejobbox"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 2
        versionName "1.1"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '27.0.3'
}

repositories {
    // You can also use jcenter if you prefer
    mavenCentral()
    jcenter()
    maven {
        url "https://maven.google.com"
    }
}

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


    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:support-v4:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    //Add New Dependency and compile
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'cc.cloudist.acplibrary:library:1.2.1'
    implementation 'io.paperdb:paperdb:2.6'
    implementation 'com.github.ybq:Android-SpinKit:1.1.0'
    //Searchable Dependency
    implementation 'com.github.MdFarhanRaja:SearchableSpinner:1.9'
    // google Services Depedency

    //noinspection GradleCompatible
    implementation 'com.google.firebase:firebase-core:15.0.0'
    implementation 'com.google.firebase:firebase-messaging:15.0.0'
    implementation 'com.google.firebase:firebase-crash:15.0.0'
    implementation 'com.google.firebase:firebase-invites:15.0.1'
    implementation 'com.google.firebase:firebase-database:15.0.1'
    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    //compile 'com.google.firebase:firebase-ads:15.0.0'

}

apply plugin: 'com.google.gms.google-services'
我还在implementation
'com.android.support:appcompat-v7:27.1.0'
implementation'com.google.firebase:firebase core:15.0.0'
中发现了相同的版本规范警告,然后我尝试更改了它的版本,并检查了所有新版本,但警告是这样的,所以我用
//noinspect>修复了它渐变可兼容

请检查并让我知道如何解决此错误。
谢谢

在defaultConfig{}中添加以下代码

代码:“应用程序”

参考链接:


添加此代码后,请让我知道任何错误

在defaultConfig{}中添加以下代码

代码:“应用程序”

参考链接:


添加此代码后,请让我知道任何错误

it show me error:*出错原因:任务执行失败:app:processClient1DevDebugGoogleServices'>在项目中找不到与包名“com.ejobbox.ejobbox.client1”google-services.json文件匹配的客户端,或者在google-service.json文件中找不到与之不同的包名。我检查一切正常,没有文件丢失或包名更改。我在您的代码中发现了问题。请将您的整个应用程序升级文件发送给我。因为根据您的包名是com.ejobbox.ejobbox,但错误是throw,包名是com.ejobbox.ejobbox.client1。它向我显示错误:*出错原因:任务执行失败:app:processClient1DevDebugGoogleServices'>在项目中找不到与包名“com.ejobbox.ejobbox.client1”google-services.json文件匹配的客户端,或者在google-service.json文件中找不到与之不同的包名。我检查一切正常,没有文件丢失或包名更改。我在您的代码中发现了问题。请将您的整个应用程序升级文件发送给我。因为根据您的包名是com.ejobbox.ejobbox,但错误是抛出包名是com.ejobbox.ejobbox.client1。