Android 我遇到这些错误,请指导我如何修复?
嗨,请帮助我如何解决这个问题,它发生在登录和注册页面 所以它使我的应用程序崩溃了,请帮助我摆脱这些错误 错误是渲染问题:Android 我遇到这些错误,请指导我如何修复?,android,android-layout,Android,Android Layout,嗨,请帮助我如何解决这个问题,它发生在登录和注册页面 所以它使我的应用程序崩溃了,请帮助我摆脱这些错误 错误是渲染问题: Couldn't resolve resource @string/path_password_strike_through Failed to parse file C:\Users\Kashi\.gradle\caches\transforms-1\files-1.1\design-28.0.0-alpha3.aar\56e65747003de1b867e35f7882
Couldn't resolve resource @string/path_password_strike_through
Failed to parse file C:\Users\Kashi\.gradle\caches\transforms-1\files-1.1\design-28.0.0-alpha3.aar\56e65747003de1b867e35f7882861c1e\res\drawable-v21\avd_show_password.xml
xml:
您发布的xml文件没有引用任何名为“路径\密码\罢工\通过”的字符串资源 但我认为您不幸地删除了这个键字符串,或者从未在字符串中创建过它。xml这是一个bug 问题在于处理aapt属性内的资源解析。 这已在Android Studio 3.3 canary中修复
检查字符串资源是否有效或是否存在于字符串文件中。也张贴你的日志猫错误。你是否为密码字段设置了drawable?logcat错误列表太长了。我发现了一个错误。我的android版本是最新的3,2,不支持它,所以有没有任何选项可以在新版本的小部件中工作?你必须像这样将设计依赖项添加到你的应用程序级渐变依赖项中{…compile'com.android.support:design:28.0.0'}您好,我发现一个错误,我的android版本是最新的3.2,它不支持,所以在新版本中有任何选项可以在小部件中工作吗?android 3.3在哪里?android studio的最新版本是3.2.1website@WaqasFarooq你可以从这里下载
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView 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"
android:id="@+id/nestedScrollView"
android:orientation="vertical"
android:background="@color/colorPrimary"
tools:context=".activities.log_in">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textInputLayoutEmail"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textInputEditTextEmail"
android:inputType="text"
android:textColorHint="#ffffff"
android:hint="Email" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textInputLayoutPassword"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textInputEditTextPassword"
android:inputType="textPassword"
android:textColorHint="#ffffff"
android:hint="Password" />
</android.support.design.widget.TextInputLayout>
<android.support.design.button.MaterialButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/login"
android:text="Login"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<android.support.v7.widget.AppCompatTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/forgottonPassword"
android:text="Forgotton Password"
android:textColor="#ffffff"
android:gravity="center"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<android.support.v7.widget.AppCompatTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/linkRegister"
android:text="Don't have an account ? Register now"
android:textColor="#ffffff"
android:gravity="center"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>