我的代碼錯誤
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ?xmlns:tools="http://schemas.android.com/tools"
? ?android:layout_width="match_parent"
? ?android:layout_height="match_parent"
? ?android:paddingBottom="@dimen/activity_vertical_margin"
? ?android:paddingLeft="@dimen/activity_horizontal_margin"
? ?android:paddingRight="@dimen/activity_horizontal_margin"
? ?android:paddingTop="@dimen/activity_vertical_margin"
? ?tools:context="com.example.dingning.dingning">
? ?<TextView
? ? ? ?android:layout_width="wrap_content"
? ? ? ?android:layout_height="wrap_content"
? ? ? ?android:text="Hello World!"
? ? ? ?android:layout_centerVertical="true"
? ? ? ?android:layout_centerHorizontal="true"
? ? ? ?android:id="@+id/textView" />
? ?<Button
? ? ? ?android:layout_width="wrap_content"
? ? ? ?android:layout_height="wrap_content"
? ? ? ?android:text="New Button"
? ? ? ?android:id="@+id/button"
? ? ? ?android:layout_above="@+id/textView"
? ? ? ?android:layout_centerHorizontal="true"
? ? ? ?android:layout_marginBottom="100dp"/>
</RelativeLayout>
這是我的代碼,運行不了,但是沒有紅色提醒哪里錯了系統(tǒng)說
Error running dingning: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
大神教我這是怎么回事?
2017-10-12
菜單欄,Tools -> Adnroid -> enable ADB integration