Итак, когда я добавляю новую тему или добавляю код и т. Д., Она не обновляет приложение, например, если я добавляю кнопку и запускаю ее, она запустится и откроет более старую версию приложения , я попытался перестроить, я попытался установить, как полностью чистую деинсталляцию и переустановить в приложении, убедитесь, что экземпляр запуска в порядке и практически все, даже редактирование. Я переустановил андроид-студию, но все еще имею ту же проблему.Android-студия не обновляет мое приложение на сборке
активность Основной:
<?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"
android:background="@drawable/background"
tools:context="dogboy602k.com.myapplication.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login to your account"
android:id="@+id/textViewHello"
android:textColor="#100606"
android:textSize="@dimen/abc_action_bar_icon_vertical_padding_material"
android:background="#00ffffff"
android:layout_above="@+id/emailField"
android:layout_centerHorizontal="true"
android:layout_marginBottom="65dp" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:ems="10"
android:id="@+id/passwordField"
android:text="Password"
android:layout_marginBottom="72dp"
android:background="#00ffffff"
android:layout_above="@+id/button"
android:layout_alignParentStart="true"
android:layout_alignEnd="@+id/emailField" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="@+id/emailField"
android:text="Email"
android:autoText="false"
android:background="#00ffffff"
android:layout_marginBottom="40dp"
android:layout_above="@+id/passwordField"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter"
android:id="@+id/button"
android:textColor="#000000"
android:background="#dedddd"
android:nestedScrollingEnabled="false"
android:onClick="clickFunction"
android:layout_marginBottom="51dp"
android:minWidth="80dp"
android:minHeight="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
сборки Gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "dogboy602k.com.myapplication"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.firebase:firebase-client-android:2.3.1'
}
apply plugin: 'com.google.gms.google-services'
Вы мгновенный запуск отключены, если это то, что вы спрашиваете о –
@ cricket_007 Я включил все, что в случае выполнения и по-прежнему не буду обновлять – mike
Emulator или физическое устройство? Когда вы очищаете и перестраиваете, можете ли вы проверить атрибут даты файла apk в папке сборки? –