当前位置:   article > 正文

解决Ubuntu 18.04.5LTS android studio的安装运行工程时出现的问题_ubuntu18.04启动android studio a ui exception occur

ubuntu18.04启动android studio a ui exception occur

1.新建一个工程

 Make Poject后报错

Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager

解决:

找到Tools->SDK Manager 

 将右下角的Show Package Details打勾

将30.0.3打勾或者30其他版本的,点击Apply,等待下载完成

下载好之后,快捷键Ctrl+Shift+Alt+S或者右上角的Poject Structure...

 

 Compile Sdk Version 选择30

Build Tools Version 选择30.0.2或者30其他版本

然后Apply就解决这个问题了。

2.上面问题接续,前面问题继续报其他的错:

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

解决:

        

打开AndroidManifest.xml文件

加上android:exported="true"

         就解决这个报错了

3.模拟器下好了,却打不开,

 打开终端

输入sudo chmod 777 /dev/kvm,就可以打开了

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/824117
推荐阅读
相关标签
  

闽ICP备14008679号