AAPT : 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

루시

다음 XML을 사용하여 응용 프로그램에서 작업 중입니다. 이것은 내 로그인 조각의 XML입니다. 그러나 프로젝트를 정리 / 빌드하려고하면 다음 오류가 발생합니다.

오류 : XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".SignInFragment"
android:background="@drawable/gradient_color">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageButton
android:id="@+id/sign_up_close_btn"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@android:color/transparent"
android:padding="16dp"
android:src="@drawable/ic_cancel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView"
android:layout_width="254dp"
android:layout_height="182dp"
android:src="@mipmap/ic_launcher_foreground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.496"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.16000003" />
<EditText
android:id="@+id/sign_in_email"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:backgroundTint="#70FFFFFF"
android:textColor="@color/colorAccent"
android:ems="10"
android:hint="@string/hint_email"
android:inputType="textEmailAddress"
android:textColorHint="#70FFFFFF"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
<EditText
android:id="@+id/sign_in_pass"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:backgroundTint="#70FFFFFF"
android:textColor="@color/colorAccent"
android:ems="10"
android:hint="@string/hint_pass"
android:inputType="textPassword"
android:textColorHint="#70FFFFFF"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sign_in_email" />
<TextView
android:id="@+id/sign_in_forgot_pass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginLeft="4dp"
android:text="@string/forg_pass"
android:textColor="@color/colorAccent"
app:layout_constraintStart_toStartOf="@+id/sign_in_pass"
app:layout_constraintTop_toBottomOf="@+id/sign_in_pass" />
<Button
android:id="@+id/sign_in_btn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:background="@color/colorPrimary"
android:text="@string/btn_In"
android:textAllCaps="false"
android:textColor="@color/colorAccent"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sign_in_forgot_pass"
app:layout_constraintVertical_bias="0.47000003" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/or"
android:textColor="@color/colorAccent"
app:layout_constraintBottom_toTopOf="@+id/tv_dont_have_an_account"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sign_in_btn"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/tv_dont_have_an_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
android:text="@string/text1"
android:textColor="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<View
android:id="@+id/divider"
android:layout_width="100dp"
android:layout_height="1dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:background="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="@+id/textView2"
app:layout_constraintEnd_toStartOf="@+id/textView2"
app:layout_constraintTop_toTopOf="@+id/textView2" />
<View
android:id="@+id/divider2"
android:layout_width="100dp"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:background="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="@+id/textView2"
app:layout_constraintStart_toEndOf="@+id/textView2"
app:layout_constraintTop_toTopOf="@+id/textView2" />
<ProgressBar
android:id="@+id/sign_in_progress_bar"
style="?android:attr/progressBarStyle"
android:layout_width="30dp"
android:layout_height="30dp"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/sign_in_btn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sign_in_pass" />
</>
</FrameLayout>

무슨 뜻일까요? 내가 뭘 잘못 했어? 정말 걱정이됩니다. 내 코드를 여러 번 살펴 봤지만 오류를 찾지 못했습니다.

kjhughes

파일의 마지막에서 두 번째 줄에는

</>

이는 XML 파일이 없습니다되도록 잘 형성 . 다음으로 변경

</androidx.constraintlayout.widget.ConstraintLayout>

같은 이름의 이전 여는 태그를 올바르게 닫습니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

XML 구문 분석 오류 : <id> 요소의 형식이 잘못되었습니다 (잘못된 토큰).

분류에서Dev

XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

분류에서Dev

오류 : (45) XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰). 버튼 "<<"때문에

분류에서Dev

Firebase 맞춤 인증 오류 : '맞춤 토큰 형식이 잘못되었습니다'

분류에서Dev

WCF 클라이언트 보안 헤더 오류 "잘못된 보안 토큰이 제공되었습니다."

분류에서Dev

AADSTS5002710 : 잘못된 JWT 토큰 : 헤더 형식이 잘못되었습니다.

분류에서Dev

오류 : 토큰의 구문 오류, 패키지 선언 섹션의 구성이 잘못되었습니다.

분류에서Dev

솔루션을 시도했지만 작동하지 않았습니다. 오류 : XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

분류에서Dev

오류 : assertExpression의 함수 (<anonymous>)에서 예기치 않은 토큰이 잘못되었습니다.

분류에서Dev

ListTopicRules 작업을 호출 할 때 오류가 발생했습니다 (UnrecognizedClientException) : 요청에 포함 된 보안 토큰이 잘못되었습니다.

분류에서Dev

SAS 토큰에서 "se"값이 잘못되었습니다.

분류에서Dev

XML 파일 오류-Android (XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰))

분류에서Dev

'구문 오류 : 잘못된 토큰'Codeskulptor

분류에서Dev

Python : 구문 오류 : 잘못된 토큰

분류에서Dev

오류 : (41) XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰) + 기호 R을 확인할 수 없습니다.

분류에서Dev

C ++ 연결 Excel 오류 : "수식에 사용 된 값의 데이터 형식이 잘못되었습니다."

분류에서Dev

Java의 "식의 시작이 잘못되었습니다"오류

분류에서Dev

격자 무늬 루비 보석 : '제공된 공개 토큰이 잘못된 형식입니다'오류를 던지는 교환 토큰

분류에서Dev

GCC : libstdc ++. so : sybol 추가 오류 : 파일 형식이 잘못되었습니다.

분류에서Dev

XML 구문 분석 오류 : 형식이 잘못되었습니다.

분류에서Dev

오류 # 1090 : XML 파서 실패 : 요소 형식이 잘못되었습니다.

분류에서Dev

행 삭제 : '잘못된 업데이트 : 섹션 0의 행 수가 잘못되었습니다'오류

분류에서Dev

Aws-vault : 자격 증명 가져 오기 실패-InvalidClientTokenId : 요청에 포함 된 보안 토큰이 잘못되었습니다.

분류에서Dev

XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰), XML은 완벽하게 괜찮습니다.

분류에서Dev

잘못된 DN 구문이 지정되었습니다.-Visual Studio 오류

분류에서Dev

Apache Wamp [오류] (20024) 주어진 경로의 형식이 잘못되었거나 잘못된 문자가 포함되어 있습니다.

분류에서Dev

잘못된 JSON 페이로드가 수신되었습니다. 예기치 않은 토큰입니다. \ nclient_id = xxxx \ n ^ authCode를 사용하여 액세스를 교환하고 토큰을 새로 고칠 때 오류가 발생합니다.

분류에서Dev

정규식 오류가 잘못되었습니다.

분류에서Dev

Recaptcha ambethia-입력 오류 : k : 사이트 키 형식이 잘못되었습니다 / 잘못된 요청 쿠키

Related 관련 기사

  1. 1

    XML 구문 분석 오류 : <id> 요소의 형식이 잘못되었습니다 (잘못된 토큰).

  2. 2

    XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

  3. 3

    오류 : (45) XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰). 버튼 "<<"때문에

  4. 4

    Firebase 맞춤 인증 오류 : '맞춤 토큰 형식이 잘못되었습니다'

  5. 5

    WCF 클라이언트 보안 헤더 오류 "잘못된 보안 토큰이 제공되었습니다."

  6. 6

    AADSTS5002710 : 잘못된 JWT 토큰 : 헤더 형식이 잘못되었습니다.

  7. 7

    오류 : 토큰의 구문 오류, 패키지 선언 섹션의 구성이 잘못되었습니다.

  8. 8

    솔루션을 시도했지만 작동하지 않았습니다. 오류 : XML 구문 분석 오류 : 형식이 잘못되었습니다 (잘못된 토큰).

  9. 9

    오류 : assertExpression의 함수 (<anonymous>)에서 예기치 않은 토큰이 잘못되었습니다.

  10. 10

    ListTopicRules 작업을 호출 할 때 오류가 발생했습니다 (UnrecognizedClientException) : 요청에 포함 된 보안 토큰이 잘못되었습니다.

  11. 11

    SAS 토큰에서 "se"값이 잘못되었습니다.

  12. 12

    XML 파일 오류-Android (XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰))

  13. 13

    '구문 오류 : 잘못된 토큰'Codeskulptor

  14. 14

    Python : 구문 오류 : 잘못된 토큰

  15. 15

    오류 : (41) XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰) + 기호 R을 확인할 수 없습니다.

  16. 16

    C ++ 연결 Excel 오류 : "수식에 사용 된 값의 데이터 형식이 잘못되었습니다."

  17. 17

    Java의 "식의 시작이 잘못되었습니다"오류

  18. 18

    격자 무늬 루비 보석 : '제공된 공개 토큰이 잘못된 형식입니다'오류를 던지는 교환 토큰

  19. 19

    GCC : libstdc ++. so : sybol 추가 오류 : 파일 형식이 잘못되었습니다.

  20. 20

    XML 구문 분석 오류 : 형식이 잘못되었습니다.

  21. 21

    오류 # 1090 : XML 파서 실패 : 요소 형식이 잘못되었습니다.

  22. 22

    행 삭제 : '잘못된 업데이트 : 섹션 0의 행 수가 잘못되었습니다'오류

  23. 23

    Aws-vault : 자격 증명 가져 오기 실패-InvalidClientTokenId : 요청에 포함 된 보안 토큰이 잘못되었습니다.

  24. 24

    XML 구문 분석 오류 : 형식이 올바르지 않음 (잘못된 토큰), XML은 완벽하게 괜찮습니다.

  25. 25

    잘못된 DN 구문이 지정되었습니다.-Visual Studio 오류

  26. 26

    Apache Wamp [오류] (20024) 주어진 경로의 형식이 잘못되었거나 잘못된 문자가 포함되어 있습니다.

  27. 27

    잘못된 JSON 페이로드가 수신되었습니다. 예기치 않은 토큰입니다. \ nclient_id = xxxx \ n ^ authCode를 사용하여 액세스를 교환하고 토큰을 새로 고칠 때 오류가 발생합니다.

  28. 28

    정규식 오류가 잘못되었습니다.

  29. 29

    Recaptcha ambethia-입력 오류 : k : 사이트 키 형식이 잘못되었습니다 / 잘못된 요청 쿠키

뜨겁다태그

보관