Flutter报错:inappwebview在Android运行
2020-01-07 本文已影响0人
坤哥爱卿
1、会遇到Android X不支持问题
解决方法:参考https://blog.csdn.net/jiangyangll/article/details/99675406
2、遇到Kotlin版本不对问题
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project ‘Test’ is using version 1.2.30.
解决方法:
a.打开build.gradle(Project)
b.修改buildscript中的ext.kotlin_version = ‘1.2.30’ 改成ext.kotlin_version = ‘1.2.51’
buildscript {
ext.kotlin_version = '1.2.51'
}
c.rebuild
3、遇到net::ERR_CLEARTEXT_NOT_PERMITTED无法加载问题
![](https://img.haomeiwen.com/i1599119/39837c826aaac07b.jpg)
解决方法:
在manifest 中application节点添加
android:usesCleartextTraffic="true"
![](https://img.haomeiwen.com/i1599119/068050f721ab558f.png)