无法获取flutter插件

来源:16-8 旅拍页面交互与我的页面实现

moses_wang123

2020-06-18

Couldn’t read file LocalFile: ‘D:\flutter_windows_v1.12.13+hotfix.8-stable\flutter.pub-cache\hosted\pub.flutter-io.cn\fluttertoast-3.1.3\android\src\main\java\io\github\ponnamkarthik\toast\fluttertoast\FluttertoastPlugin.java’ even though it exists. Please verify that this file has read permission and try again.
![图片描述](http://img1.sycdn.imooc.com/szimg/5eeb1e7f09533c7613280591.jpg

本人使用 androidStudio 4.0

android {
    compileSdkVersion 28
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
    defaultConfig {
        applicationId "com.example.car_analyzef.host"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        profile {
            initWith debug
        }
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
}
buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
    }
}
allprojects {
    repositories {
        google()
        jcenter()
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
写回答

1回答

moses_wang123

提问者

2020-06-18

请问怎么解决这个问题啊?


0
1
CrazyCodeBoy
将flutter版本升级到v1.17试一下。
2020-06-23
共1条回复

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3274 问题

查看课程