Android 颤振附加问题

Android 颤振附加问题,android,flutter,Android,Flutter,我已经将颤振添加到我现有的Android中,主要问题是如果我做了任何更改,首先我必须运行颤振模块,然后运行Android模块。然后只有我才能看到更改 为了解决这个问题,我们可以使用 $flutter attach gradle类路径: classpath 'com.android.tools.build:gradle:3.3.2' 当我按R 我的应用程序因以下日志而崩溃 03-13 20:11:26.367 2990-14819/? E/InputManager-JNI: sysfs_wri

我已经将颤振添加到我现有的Android中,主要问题是如果我做了任何更改,首先我必须运行颤振模块,然后运行Android模块。然后只有我才能看到更改

为了解决这个问题,我们可以使用

$flutter attach
gradle类路径:

classpath 'com.android.tools.build:gradle:3.3.2'
当我按
R
我的应用程序因以下日志而崩溃

03-13 20:11:26.367 2990-14819/? E/InputManager-JNI: sysfs_write : Error opening /sys/class/input/event14/device/enabled: 0 03-13 20:11:26.547 2990-4746/? E/MotionRecognitionService:  handler : SCREEN_OFF end  03-13 20:11:26.712 2990-3012/? E/GpsLocationProvider: sExerciseIterface is not available 03-13 20:11:27.822 2990-6918/? E/AppWidgetServiceImpl: error in getAllWidgets
    java.lang.NullPointerException: Attempt to read from field 'android.appwidget.AppWidgetProviderInfo com.android.server.appwidget.AppWidgetServiceImpl$Provider.info' on a null object reference
        at com.android.server.appwidget.AppWidgetServiceImpl.getAllWidgets(AppWidgetServiceImpl.java:2078)
        at a.Q.getAllWidgets(Unknown Source)
        at a.c.c(Unknown Source)
        at a.c.e(Unknown Source)
        at a.B.D(Unknown Source)
        at a.B.c(Unknown Source)
        at a.D.run(Unknown Source)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:145)
        at android.os.HandlerThread.run(HandlerThread.java:61) 03-13 20:11:30.442 2990-14874/? E/InputManager-JNI: sysfs_write : Error opening /sys/class/input/event14/device/enabled: 1 03-13 20:11:30.482 2990-4768/? E/native: do suspend false 03-13 20:11:30.497 2990-3012/? E/GpsLocationProvider: sExerciseIterface is not available 03-13 20:11:34.562 14643-14774/com.manash.purplle E/DartVM: ../../third_party/dart/runtime/vm/object.h: 8736: error: Handle check failed: saw Instance of 'HomePage' expected Closure

“我正在为我现有的安卓系统添加颤振”
这是什么意思?你到底想实现什么?在现有的本机应用程序中,我添加了类似颤振的模块或什么?是的,相同,,,因此,因为这是在预览中,所以在你的问题中添加更多关于颤振的信息,否则没有人会知道你在问什么…
“我正在将颤振添加到我现有的Android中”
这是什么意思?你到底想实现什么?在现有的本机应用程序中,我添加了颤振模块,或者什么?是的,相同,,,因此,因为这是预览版,所以在你的问题中添加更多关于颤振模块的信息,否则没有人会知道你在问什么。。。