0
Jsoup를 사용하여 HTML을 android로 구문 분석하려고합니다. 내가 URL로 연결하기 위해 노력하고있어 때, 나는 오류Jsoup를 사용하여 안드로이드에서 HTML 구문 분석하기
Document doc = null;
try {
doc = Jsoup.connect("http://en.wikipedia.org/").get();
} catch (IOException e) {
e.printStackTrace();
}
오류를 얻을 :
12-08 13:27:11.254 28041-28041/? E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
12-08 13:27:11.284 28041-28041/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.krzych.taksometr, PID: 28041
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.krzych.taksometr/com.example.krzych.taksometr.MainActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class selector
XML이 주요 활동
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
tools:context="com.example.krzych.taksometr.MainActivity">
<TextView
android:id="@+id/tekst"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
전체 MainActivity 자바 대구뿐만 아니라 주요 활동 XML 코드를 게시 할 수 있습니까? 이자형? – Darush
이 오류는 Jsoup에 대해 아무런 언급도하지 않습니다. 그것은 당신의 XML 코드와 관련이 있습니다. – Darush
문제가 ** android.graphics.drawable.RippleDrawable ** 태그에 있다고 생각합니다 XML 파일을 여기에 게시하십시오 – Saif