Java 即使应用了约束,如何查看缺少的按钮?

Java 即使应用了约束,如何查看缺少的按钮?,java,android-studio,sdk,android-gradle-plugin,Java,Android Studio,Sdk,Android Gradle Plugin,我一直在尝试连接到parse服务器和AmazonWeb服务来创建登录数据库 目前,我已经连接了服务器和amazon web服务。但是,现在,当我为登录详细信息添加按钮并在编写相关代码后,即使在我应用了约束之后,当应用程序运行时,按钮也不会显示 此文件已由我目前正在学习的课程的使用者下载。该文件是一个旧文件,我有几个关于gradle文件、缺少工具箱等的错误需要修复 在我的日志中,我得到以下信息 2019-07-20 22:33:21.62715940-15940/?D/libEGL:Emulato

我一直在尝试连接到parse服务器和AmazonWeb服务来创建登录数据库

目前,我已经连接了服务器和amazon web服务。但是,现在,当我为登录详细信息添加按钮并在编写相关代码后,即使在我应用了约束之后,当应用程序运行时,按钮也不会显示

此文件已由我目前正在学习的课程的使用者下载。该文件是一个旧文件,我有几个关于gradle文件、缺少工具箱等的错误需要修复

在我的日志中,我得到以下信息

2019-07-20 22:33:21.62715940-15940/?D/libEGL:Emulator具有主机GPU支持,qemu.gles设置为1。 2019-07-20 22:33:21.630 15940-15940/? D/libEGL:load/vendor/lib/egl/libEGL_.so 2019-07-20 22:33:21.630 15940-15940/? D/libEGL:load/vendor/lib/egl/libGLESv1_CM_emulation.so 2019-07-20 22:33:21.668 15940-15940/? D/libEGL:load/vendor/lib/egl/libGLESv2_emulation.so 2019-07-20 23:23:22.364 15940-15940/? I/m.parse.starte:未延迟启用-Xcheck:jni(已启用) 2019-07-20 23:23:22.387 15940-15940/? E/m.parse.starte:运行时设置的未知位\u标志:0x8000 2019-07-20 23:23:22.388 15940-15940/? W/m.parse.starte:使用默认值的X86的意外CPU变量:X86 2019-07-20 23:23:22.51615940-15940/com.parse.starter I/m.parse.starte:ClassLoaderContext是一个特殊的共享库。 2019-07-20 23:23:22.799 15940-15940/com.parse.starter W/m.parse.starte:JIT配置文件信息将不被记录:配置文件文件不存在。 2019-07-20 23:23:22.800 15940-15940/com.parse.starter I/chatty:uid=10136(com.parse.starter)相同的10行 2019-07-20 23:23:22.800 15940-15940/com.parse.starter W/m.parse.starte:将不记录JIT配置文件信息:配置文件不存在。 2019-07-20 23:23:22.836 15940-15940/com.parse.starter I/FirebaseInitProvider:FirebaseApp初始化失败 2019-07-20 23:23:22.839 15940-15940/com.parse.starter I/instanttrun:启动即时运行服务器:是主进程 2019-07-20 23:23:23.155 15940-15940/com.parse.starter W/m.parse.starte:访问隐藏方法Landroid/view/view;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z(灰色列表,允许反射) 2019-07-20 23:23:23.155 15940-15940/com.parse.starter W/m.parse.starte:访问隐藏方法Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V(灰色列表,允许反射) 2019-07-20 23:23:23.232 15940-17541/com.parse.starter D/NetworkSecurityConfig:未指定网络安全配置,使用平台默认值 2019-07-20 23:23:23.308 15940-17536/com.parse.starter D/OpenGLRenderer:交换行为1 2019-07-20 23:23:23.309 15940-17536/com.parse.starter W/OpenGLRenderer:未能选择保留EGL交换行为的配置,正在重试,但没有。。。 2019-07-20 23:23:23.309 15940-17536/com.parse.starter D/OpenGLRenderer:交换行为0 2019-07-20 23:23:23.317 15940-17536/com.parse.starter D/eglcodeccom:setVertexArrayObject:将vao设置为0(0)0 2019-07-20 23:23:23.317 15940-17536/com.parse.starter D/EGL_仿真:eglCreateContext:0xeb87fdc0:maj 3 min 0 rcv 3 2019-07-20 23:23:23.335 15940-17536/com.parse.starter D/EGL_仿真:eglMakeCurrent:0xeb87fdc0:ver 3 0(tinfo 0xe07b4540) 2019-07-20 23:23:23.391 15940-17536/com.parse.starter W/Gralloc3:mapper 3.x不受支持 2019-07-20 23:23:23.418 15940-17536/com.parse.starter D/OpenGLRenderer:将缓冲区计数设置为3,最小未排队1,额外缓冲区0 2019-07-20 23:23:23.442 15940-17536/com.parse.starter D/EGL_仿真:eglMakeCurrent:0xeb87fdc0:ver 3 0(tinfo 0xe07b4540) 2019-07-20 23:23:23.446 15940-17536/com.parse.starter D/eglcodeccom:setVertexArrayObject:将vao设置为0(0)1 0

build.gradle
文件中的我的sdk信息是:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23

    defaultConfig {
        applicationId "com.parse.starter"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {

    implementation 'com.android.support:appcompat-v7:23.0.0'
    implementation 'com.parse.bolts:bolts-tasks:1.3.0'
    implementation 'com.parse:parse-android:1.13.0'
     implementation 'com.google.android.gms:play-services:9.4.0'
    implementation 'com.android.support:multidex:1.0.0'

   // androidTestImplementation 'com.android.support.test:runner:1.0.2'
    //androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
我对该项目的
build.gradle
是:

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
            mavenCentral()
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.4.2'
        }
    }

allprojects {
    repositories {
        mavenCentral()
        google()
    }
}

ext {
    compileSdkVersion = 22
    buildToolsVersion = "23.0.1"

    minSdkVersion = 9
    targetSdkVersion = 23
}
我的
acitivity\uuu main.xml
代码是:

<!--
  ~ Copyright (c) 2015-present, Parse, LLC.
  ~ All rights reserved.
  ~
  ~ This source code is licensed under the BSD-style license found in the
  ~ LICENSE file in the root directory of this source tree. An additional grant
  ~ of patent rights can be found in the PATENTS file in the same directory.
  -->
<RelativeLayout 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:id="@+id/layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/signUpButton"
        android:layout_width="138dp"
        android:layout_height="101dp"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="145dp"
        android:layout_marginLeft="145dp"
        android:layout_marginTop="581dp"
        android:layout_marginEnd="144dp"
        android:layout_marginRight="144dp"
        android:layout_marginBottom="64dp"
        android:text="SIGN UP"
        android:visibility="visible"
        tools:visibility="visible" />

    <EditText
        android:id="@+id/usernameEditText"
        android:layout_width="302dp"
        android:layout_height="99dp"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="36dp"
        android:layout_marginLeft="36dp"
        android:layout_marginTop="240dp"
        android:layout_marginBottom="376dp"
        android:ems="10"
        android:hint="Username"
        android:inputType="textPersonName"
        android:visibility="visible"
        tools:visibility="visible" />

    <EditText
        android:id="@+id/passwordEditText"
        android:layout_width="match_parent"
        android:layout_height="124dp"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="33dp"
        android:layout_marginLeft="33dp"
        android:layout_marginTop="354dp"
        android:layout_marginEnd="35dp"
        android:layout_marginRight="35dp"
        android:layout_marginBottom="268dp"
        android:ems="10"
        android:hint="Password"
        android:inputType="textPersonName"
        android:visibility="visible"
        tools:visibility="visible" />

</RelativeLayout>

可以发布mainActivity.java文件吗?是否初始化了setContentView(R.layout.activity_main)?我在帖子上加了我的主旨,请看一看。关于第二点,我的setContentView位于R.layout.activity\u main。我怀疑问题是因为页边距,是否可以删除整个页边距设置并重试?已尝试,页边距不是问题。。它仍然存在同样的问题。您可以发布mainActivity.java文件吗?您是否初始化了setContentView(R.layout.activity_main)?我在帖子上加了我的主旨,请看一看。关于第二点,我的setContentView位于R.layout.activity\u main。我怀疑问题是因为页边距,是否可以删除整个页边距设置并重试?已尝试,页边距不是问题。。它仍然有同样的问题