마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

RecyclerView inflate 에러 ..ㅠㅠ 절대 안없어져요 ..ㅠㅠ

0 추천

몇시간째 하고 있는데 inflate 에러가 절대 안없어지네요 RecyclerView 요...

에러 내용은

Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class android.support.v7.widget.recyclerview
                                                       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
                                                       at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
                                                       at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
                                                       at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                       at com.example.hyeon.tcpdump.MainActivity.onCreate(MainActivity.java:48)
                                                       at android.app.Activity.performCreate(Activity.java:5597)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2500)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595) 
                                                       at android.app.ActivityThread.access$900(ActivityThread.java:174) 
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) 
                                                       at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                       at android.os.Looper.loop(Looper.java:146) 
                                                       at android.app.ActivityThread.main(ActivityThread.java:5744) 
                                                       at java.lang.reflect.Method.invokeNative(Native Method) 
                                                       at java.lang.reflect.Method.invoke(Method.java:515) 
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) 
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) 
                                                       at dalvik.system.NativeStart.main(Native Method) 

이것과 

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.recyclerview" on path:

이렇게 구요..

아래는 그래들입니다.

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.+'
    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
    compile 'com.android.support:recyclerview-v7:24.0.+'
    compile 'com.android.support:support-v4:24.0.+'
}

아래는 main.xml

<?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"
    tools:context="com.example.hyeon.tcpdump.MainActivity">

    <Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/start_btn"
        android:text="Start" />


    <android.support.v7.widget.recyclerview
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/start_btn"
        android:clickable="true"
        android:focusable="true"
        android:id="@+id/log_tv"
        >
    </android.support.v7.widget.recyclerview>

 

인플레이트 에러가 그래들 버전, xml 뭐 고쳐야한대서 이렇게 올려요..

부탁드립니다. 사소한문제 같은데 몇시간째 안풀려서요

헐잘생겼다 (570 포인트) 님이 2016년 10월 13일 질문

1개의 답변

0 추천
 
채택된 답변

.recyclerview

->

.RecyclerView

익명사용자 님이 2016년 10월 13일 답변
헐잘생겼다님이 2016년 10월 13일 채택됨
컥 감사합니다. ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ
우와....진짜 이런 사소한 .ㅎㅎㅎ
...