Skip to content

package R does not exist #79

Open
Open
@nouser000

Description

I have created a new project, added the package and when I run it it shows me the error:
error: package R does not exist

Log:

C:\Users\myuser\AppData\Local\Pub\Cache\hosted\pub.dev\ultralytics_yolo-0.0.3\android\src\main\java\com\ultralytics\ultralytics_yolo\NativeView.java:30: error: package R does not exist
        view = LayoutInflater.from(context).inflate(R.layout.activity_tflite_camera, null);
                                                     ^
C:\Users\myuser\AppData\Local\Pub\Cache\hosted\pub.dev\ultralytics_yolo-0.0.3\android\src\main\java\com\ultralytics\ultralytics_yolo\NativeView.java:31: error: package R does not exist
        mPreviewView = view.findViewById(R.id.previewView);
                                          ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

Flutter Version 3.24.5
Dart 3.5.4
Java version 18.0.2.1
Gradle 8.3

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesDependencies and packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions