longrenzhut
longrenzhut
嗯嗯,那我试试,在flutterActivivty 重写下createPackageContext return this
打包成功进入了,本地图片还是没有显示出来 package com.tencent.shadow.sample.plugin; import android.content.Context; import android.content.pm.PackageManager; import android.os.Bundle; import android.text.TextUtils; import androidx.annotation.NonNull; import com.tencent.shadow.sample.plugin.statusbar.StatusBarCompat; import io.flutter.embedding.android.FlutterActivity; import io.flutter.embedding.engine.FlutterEngine; import io.flutter.embedding.engine.FlutterEngineCache; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; public class FlutterAppActivity extends FlutterActivity...
嗯嗯,好像没加载assets下面的 使用的是Image.asset
我写的demo里面BottomBarWidget 里面 然后调用ImageHelper 中buildImage方法 ,里面用的image.asset 方法加载本地图片
你启动方式和我不一样 你是直接打开flutterAcitivy?
报错 Execution failed for task ':plugin-normal-apk:checkDebugAarMetadata'. > Could not resolve all files for configuration ':plugin-normal-apk:debugRuntimeClasspath'. > Could not find com.example.my_flutter:flutter_debug:1.0. Searched in the following locations: - https://mirrors.tencent.com/nexus/repository/maven-public/com/example/my_flutter/flutter_debug/1.0/flutter_debug-1.0.pom - https://maven.pkg.github.com/tencent/shadow/com/example/my_flutter/flutter_debug/1.0/flutter_debug-1.0.pom -...