Tags
Flutter
Asked 3 years ago
11 Oct 2021
Views 841
Jarrell

Jarrell posted

Flutter : flutter run error - insufficient permissions for device

main,dart

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Welcome to Flutter'),
        ),
        body: const Center(
          child: Text('Hello World'),
        ),
      ),
    );
  }
}


after running flutter run
it gives me following output :


Error 1 retrieving device properties for ro.product.cpu.abi:
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

Launching lib/main.dart on 9544f29f7d95 in debug mode...
Running Gradle task 'assembleDebug'...
?  Built build/app/outputs/flutter-apk/app-debug.apk.
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
Installing build/app/outputs/flutter-apk/app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install

error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
adb: connect error for write: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
Error launching application on 9544f29f7d95.



i am learning flutter, but not sure how to solve this error
jaggy

jaggy
answered Oct 11 '21 00:00

try this and check it work or not


adb kill-server
sudo adb start-server
sudo adb devices
Post Answer