簡體   English   中英

錯誤:找不到符號類/變量“ TransportMediator”

[英]Error: cannot find symbol class/variable “TransportMediator”

當我嘗試運行該應用程序時,我的代碼出現問題,但出現了這些錯誤,但我真的不知道如何解決所有依賴關系。Update嘗試清理重建並驗證chche,但gradle文件沒有任何反應和該應用程序的項目gradle任何幫助表示贊賞

 buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.google.gms:google-services:3.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() maven { url 'https://jitpack.io' } maven { url 'https://maven.google.com' } } } task clean(type: Delete) { delete rootProject.buildDir } 

 apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion "27.0.3" defaultConfig { applicationId "com.amiapp.videodownloader" minSdkVersion 15 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:3.0.1', { exclude group: 'com.android.support', module: 'support-annotations' }) compile files('libs/glide-3.6.0.jar') compile 'com.android.support:appcompat-v7:27.0.2' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:design:27.0.2' compile 'com.google.android.gms:play-services-ads:11.8.0' compile 'com.google.firebase:firebase-core:11.8.0' compile 'com.google.firebase:firebase-messaging:11.8.0' compile 'com.google.firebase:firebase-crash:11.8.0' compile 'com.android.support:cardview-v7:27.0.2' compile 'com.android.support:recyclerview-v7:27.0.2' compile 'com.github.turhanoz:reactivedirectorychooser:2.0.1' compile 'com.timqi.sectorprogressview:library:2.0.1' compile 'com.geniusforapp.fancydialog:FancyDialog:0.1.0' testCompile 'junit:junit:4.12' } apply plugin: 'com.google.gms.google-services' 

Error:(10, 32) error: cannot find symbol class TransportMediator

Error:(98, 31) error: cannot find symbol variable TransportMediator

可以在v4支持庫中找到TransportMediator。

在模塊級build.gradle文件中包含'compile com.android.support:support-v4:27.0.2'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM