Android StudioでFlutterアプリを作成しており、いざ実機(OnePlus5)にインストールしようとしたところ、エミューレータでは成功していたインストールができませんでした。
具体的には、以下のように「Installing~」の箇所から動かなくなります。
Launching lib\main.dart on ONEPLUS A5000 in debug mode... Running Gradle task 'assembleDebug'... √ Built build\app\outputs\apk\debug\app-debug.apk. Installing build\app\outputs\apk\app.apk...
インストールはAndroid Studioから実機を指定して実行することを意味しています。
実機のドライバはインストール済みであり、過去、別のアプリを実装し、同様の方法でインストールしたことが複数回あります。
logcatで"Flutter"で絞って観察したところ、warn以上のログとしては以下のようなものが出力されていますが、まだ原因が特定できていません。
2020-02-26 22:19:17.837 9372-9372/? E/ple.flutter_ap: Unknown bits set in runtime_flags: 0x8000 2020-02-26 22:19:17.838 9372-9372/? W/ple.flutter_ap: Unexpected CPU variant for X86 using defaults: x86 2020-02-26 22:19:18.218 9372-9393/com.example.flutter_app W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found. 2020-02-26 22:19:18.317 9372-9395/com.example.flutter_app W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found. 2020-02-26 22:19:18.312 9372-9372/com.example.flutter_app W/RenderThread: type=1400 audit(0.0:50): avc: denied { write } for name="property_service" dev="tmpfs" ino=9353 scontext=u:r:untrusted_app:s0:c133,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.example.flutter_app 2020-02-26 22:19:18.328 9372-9401/com.example.flutter_app W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) 2020-02-26 22:19:18.738 9372-9372/com.example.flutter_app W/ple.flutter_ap: Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist, reflection, allowed) 2020-02-26 22:19:18.738 9372-9372/com.example.flutter_app W/ple.flutter_ap: Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed) 2020-02-26 22:19:18.738 9372-9372/com.example.flutter_app W/ple.flutter_ap: Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection, allowed) 2020-02-26 22:19:18.738 9372-9372/com.example.flutter_app W/ple.flutter_ap: Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed) 2020-02-26 22:19:18.790 9372-9399/com.example.flutter_app W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 2020-02-26 22:19:18.893 9372-9403/com.example.flutter_app W/Gralloc3: mapper 3.x is not supported
もしこの事象の解決になにかしら知見がある方がいらっしゃいましたらご教示いただければ幸いです。
よろしくお願いいたします。


回答3件
あなたの回答
tips
プレビュー