我的android工作室有问题。 我在Mac上安装了android studio 3.0.1,我遇到了URI的问题
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.yuval.myapplication.MainActivity">
在程序中,所有http都是红色,错误显示“此uri注册的资源无法识别”
我尝试启动的所有项目都会出现此错误。
我已经查看了有关此问题的所有问题,但没有任何帮助我。
非常感谢任何帮助。 提前谢谢。
答案 0 :(得分:1)
我认为你的AndroidManifest.xml缺少这两行:
`
android:versionCode="1"
android:versionName="1.0"
`
AndroidManifest.xml的前五行可以正常工作:
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
> package="com.example.petr.myfirstapp"
> android:versionCode="1"
> android:versionName="1.0"
如果你发现它有用,请给我答案。谢谢。