2017-08-06 84 views
-2

Error image.这是在升级我的android studio后发生的。我已经尝试了所有类似的堆栈溢出问题和其他一些晦涩难懂的论坛,但是我没有得到任何关于这个错误的信息,而且我已经在这里工作了6个小时。我也跟sdk工具经理吵过架,但我没有到任何地方。哦,那个maven的东西是新的,从类似的答案中试了一下。Android API 26找不到平台,无法下载的软件包

这里是我的gradle这个文件:

android { 
    compileSdkVersion 26 
    buildToolsVersion "26.0.0" 
    defaultConfig { 
     applicationId "com.loredylore.lorebuilder" 
     minSdkVersion 15 
     targetSdkVersion 26 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     vectorDrawables.useSupportLibrary = true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:26.0.0-alpha1' 
    compile 'com.android.support:design:26.0.0-alpha1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.android.support:support-v4:26.0.0-alpha1' 
    compile 'com.android.support:support-vector-drawable:26.0.0-alpha1' 
    compile 'com.android.support:recyclerview-v7:26.0.0-alpha1' 
    compile 'com.google.firebase:firebase-auth:11.0.2' 
    compile 'com.google.firebase:firebase-core:11.0.2' 
    compile 'com.google.firebase:firebase-database:11.0.2' 
    compile 'com.google.firebase:firebase-crash:11.0.2' 
    compile 'com.google.firebase:firebase-storage:11.0.2' 
    compile 'com.android.support:support-annotations:26.0.0-alpha1' 
    //new 
    testCompile 'junit:junit:4.12' 

} 

allprojects { 
    repositories { 
     jcenter() 
     maven { 
      url "https://maven.google.com" 
     } 
    } 
} 

// Add to the bottom of the file 
apply plugin: 'com.google.gms.google-services' 
+0

你张贴的图片是不可读的。这是否会发生,如果你做文件 - >新项目?如果您将依赖项1加1,会怎么样?你尝试了一个干净的重建?什么是您安装的“最新”的android studio?你有Platform 26的SDK文件吗?你是否删除/重新下载了所有的SDK(以防万一它被破坏?)我的意思是,很难说出发生了什么。试用API 25,你有同样的问题吗? –

+0

不惜一切代价避免文件新项目,太多重新配置。但它是Platform 26的第2版。我确实有sdk文件,下载并安装了android studio和sdk,并重新安装到一个新目录中,并将路径更改为新的sdk目录,但出现相同的行为/错误。我现在正在尝试API 25路由,但现在我必须解决一些新的依赖性问题。清洁重建是我尝试的第一件事情之一。不确定为什么图像太小,但如果你滚动它并按住控制按钮,那么如果你在窗户上,它应该是可见的/清晰的。 –

+0

至少你可以做的是裁剪图像,使其成为可视尺寸。更好的选择是将信息复制/粘贴为文本。 –

回答

1

使用版本25.0.3,您可能需要改写一些看法,以文本视图的时候,如果你不得不从版本的向下迁移的android 26至25

相关问题