我正在尝试在XML中使用TextInputEditText,并且遇到此错误:
Caused by: android.view.InflateException: Binary XML file line #15:
Error inflating class android.support.design.widget.TextInputEditText
Caused by: java.lang.ClassNotFoundException: Didn't find class
"android.support.design.widget.TextInputEditText" on path:
DexPathList[[zip file "/data/app/thanhnguyen.com.familysharinglocation-
1/base.apk"],nativeLibraryDirectories=
[/data/app/thanhnguyen.com.familysharinglocation-1/lib/arm64,
/system/lib64, /vendor/lib64]]
Run Code Online (Sandbox Code Playgroud)
这是我的xml:
<android.support.design.widget.TextInputLayout
android:id="@+id/fullName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<android.support.design.widget.TextInputEditText
android:hint="@string/fullName"
android:inputType="textCapWords"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)
我的依赖:
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:appcompat-v7:23.0.1'
Run Code Online (Sandbox Code Playgroud) 为什么我的情况是“找不到 import com.google.api.client.googleapis.extensions ”?我正在使用 android studio,android sdk 1.7。我还添加了依赖项:
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.google.api-client:google-api-client:1.19.0' exclude module: 'httpclient'
compile 'com.google.http-client:google-http-client-gson:1.19.0' exclude module: 'httpclient'
Run Code Online (Sandbox Code Playgroud)
多谢!