flutter-do icon indicating copy to clipboard operation
flutter-do copied to clipboard

集成的时候报错

Open SocietyYourBerotherMing opened this issue 4 years ago • 2 comments

Execution failed for task ':flutter_app_upgrade:compileDebugKotlin'. FlutterAppUpgradePlugin.kt: (62, 54): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type File?

SocietyYourBerotherMing avatar Nov 26 '20 09:11 SocietyYourBerotherMing

@SocietyYourBerotherMing 一样的问题,请问解决了吗?

flashliu avatar Nov 27 '20 10:11 flashliu

如下更改:

打开FlutterAppUpgradePlugin.kt这个文件。

第62行 result.success(mContext.getExternalFilesDir("")!!.absolutePath) //加入!! 第127行 goToMarket.setClassName(marketPackageName.toString(), marketClassName.toString()) //添加.toString()

bh1270 avatar Dec 01 '21 06:12 bh1270