flutter 添加第三方插件报错

来源:14-4 如何甄选Flutter包和插件

moses_wang123

2020-06-18

Couldn't read file LocalFile: 'D:lutter_windows_v1.12.13+hotfix.8-stablelutter.pub-cachehostedpub.flutter-io.cnluttertoast-3.1.3androidsrcmainjavaiogithubponnamkarthik oastluttertoastFluttertoastPlugin.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回答

CrazyCodeBoy

2020-06-19

执行下flutter clean然后在试下

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

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

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

4788 学习 · 3270 问题

查看课程