# Processing with Android Studio Error in fragment.setView arguments

**URL:** <https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860>\
**Category:** Processing for Android\
**Created:** [March 21, 2020, 5:04am UTC](https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860 "2020-03-21T05:04:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [March 21, 2020, 11:31am UTC](https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860/6 "2020-03-21T11:31:13Z")

</div>

@isuru === yes, i know, that is a hint, but the error is not here, it is from your imports (see the line which explains the error); you are importing androidx why not “import android.support.v7.app.AppCompatActivity”? BTW what is your version of android mode? How have you modified the main activity? how have you imported your P5 sketch inside AS?

---

_[View the full topic](https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860)._
