No rendering target selected using Android Studio

前端 未结 10 2298
天涯浪人
天涯浪人 2021-02-20 09:32

My Android Studio in activity_main.xml showing this problem: \"Rendering Problems No render target selected\" Help?

相关标签:
10条回答
  • 2021-02-20 09:40

    Top menu bar on the left side of the AVD Manager button you have a "Sync Project with Gradle Files" button. Click that. Android Studio may become sluggish for like 5 seconds, but you'll also see a loading wheel in the project files tab, and possibly a yellow bar on the top of activity_main.xml tab saying that Gradle is syncing. In about 5 seconds everything will be up to date, and you will see the device as expected. Hope this helps.

    0 讨论(0)
  • 2021-02-20 09:49

    Check the Android manifest file to see if you have specified this

    <uses-sdk android:minSdkVersion="integer"
              android:targetSdkVersion="integer"
              android:maxSdkVersion="integer" />
    

    If not then add this, it solved the error for me.

    0 讨论(0)
  • 2021-02-20 09:50

    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.

    0 讨论(0)
  • 2021-02-20 09:53

    Check the package name is correctly set in applicationId in file app\build.gradle

    0 讨论(0)
  • 2021-02-20 09:56

    You just make sure your right top corner api selection is below api 18 or 18 I think it will work or you will goto graphics layout and see the top corner and change

    0 讨论(0)
  • 2021-02-20 09:57

    I solved it with File -> Invalidate Caches/Restart.

    0 讨论(0)
提交回复
热议问题