0

This is the first time I am using Android Studio to create an android application. When I load my "activity_main.xml" file for editing purpose it shows me the following error.

Please find below screenshots.

Android Studio Rendering Error

Android Studio Gradle Error

Please Suggest fixes if any.

RBK
  • 123
  • 1
  • 15

2 Answers2

0

Try to click on Tools>Android>AVD Manager. Click New and select a device with a Target API higher than your Project API. After that restart Android Studio and load your Project. Then try again.

stxdev
  • 9
  • 3
0

You need to run the AVD Manager to add a virtual device that matches the target API version your project is set to. Click Tools->Android->AVD Manager. Click on 'New', add virtual devices targeting higher API levels, e.g 18, 19, etc. Then restart Android Studio, and open your project, it should find a target device to allow you access to the Design view.

After this you sync your gradil this will solve your issue. For more Check for more information

Balaraju
  • 1
  • 1