Getting error pls help

I m using libraries packge but getting error
Package R does not exit how to resolve this error

It may be something like R.id.button right? Actually, R is used in Android studio and they're components in the designer tab are used. You cannot do the same in App inventor.

More info

If you had used/written xml code then you may have noticed the id of the object, ex :

  <Button
        android:id="@+id/listen" << --- the id, becomes  R.id.listen
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="14dp"
        android:layout_marginTop="19dp"
        android:text="Listen"
        android:layout_alignParentTop="true"
        android:layout_alignParentStart="true" />

So in Android studio, they use it as R.id.listen

R denotes resources and you can't use it in extensions

1 Like