Aapt error not well formed invalid token

I am working on an application, with following XML. This the XML of my Sign In Fragment. But when I try to clean/build my project the following error occurs: error: Error parsing XML: not well-for...

I am working on an application, with following XML.
This the XML of my Sign In Fragment.
But when I try to clean/build my project the following error occurs:

error: Error parsing XML: not well-formed (invalid token)

<?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>

What does it possibly mean? what i have done wrong?
I’m really worried about this. i have go through my code many time but didn’t find the error

Zoe stands with Ukraine's user avatar

asked Dec 19, 2020 at 16:28

Niba's user avatar

The second-to-last line of your file has

</>

which causes your XML file to be not well-formed. Change it to

</androidx.constraintlayout.widget.ConstraintLayout>

to properly close a previous opening tag of the same name.

answered Dec 19, 2020 at 16:47

kjhughes's user avatar

kjhugheskjhughes

103k23 gold badges173 silver badges231 bronze badges

0

I’m trying to get a «hello world» application running using Android Studio 3.0.1 and get the following AAPT2 error output:

Error:(16) error: not well-formed (invalid token).
Error:(16) not well-formed (invalid token).
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details...

I was not able to find a solution, could someone please help me?

Droidman's user avatar

Droidman

11.3k15 gold badges92 silver badges140 bronze badges

asked Jan 30, 2018 at 18:56

Akshat Chawla's user avatar

1

android.enableAapt2=false Don’t do this step to temporarily hide the issue. Aapt1 is going to be deprecated soon and Aapt2 has to be used by 2018 end.

This is just an issue with the gradle build tools. Just update your gradle and the gradle tools.

I am using classpath ‘com.android.tools.build:gradle:3.3.0-alpha02» inside dependency tag in Project level gradle and I am using gradle version 4.8 . This fixed the issue for me.

Additional
Disable Instant run, if this didn’t fix for you

answered Jul 6, 2018 at 4:52

emilpmp's user avatar

emilpmpemilpmp

1,67616 silver badges32 bronze badges

«not well-formed» error from AAPT2 means one of your XML files is not well formed, probably missing a closing bracket or something similar. Above the error it should say which file it comes from. Have a look at your res/ directory and the files inside.

answered Feb 5, 2018 at 11:26

Izabela Orlowska's user avatar

Izabela OrlowskaIzabela Orlowska

7,3712 gold badges21 silver badges33 bronze badges

In your gradle.properties add this line android.enableAapt2=false

answered Feb 5, 2018 at 11:28

Mohammed Rampurawala's user avatar

2

Disable Instant Run and it may work for you. For me it worked

answered Mar 30, 2018 at 5:43

Manish Patiyal's user avatar

Manish PatiyalManish Patiyal

4,2594 gold badges20 silver badges35 bronze badges

In my case, the solution was a bit tricky and funny. I had a RelativeLayout with a TextView and a ProgressBar. The Progressbar sits on top of the TextView, like so:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:orientation="vertical"
    android:weightSum="1"
    tools:context="com.caoa.yakokoe.yakokoe.ui.splash.SplashActivity">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.5">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:contentDescription="@string/content_desc_logo_green"
            android:src="@drawable/logo_green" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.5">

        <ProgressBar
            android:id="@+id/splash_progress_bar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/splash_text"
            android:layout_centerHorizontal="true"
            android:indeterminate="true"
            android:visibility="gone" />

        <TextView
            android:id="@+id/splash_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="24dp"
            android:layout_marginTop="16dp"
            android:text="@string/splash_text_default"
            android:textAlignment="center"
            android:visibility="gone" />
    </RelativeLayout>
</LinearLayout>

This threw a sort of error (forgotten what it was, but it was in the lines of ‘cannot find id of layout_above’).

The solution was simply to flip the ProgressBar and TextView Locations, like so:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:orientation="vertical"
    android:weightSum="1"
    tools:context="com.caoa.yakokoe.yakokoe.ui.splash.SplashActivity">

    <!-- Content here -->

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.5">

        <TextView
            android:id="@+id/splash_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="24dp"
            android:layout_marginTop="16dp"
            android:text="@string/splash_text_default"
            android:textAlignment="center"
            android:visibility="gone" />

        <ProgressBar
            android:id="@+id/splash_progress_bar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/splash_text"
            android:layout_centerHorizontal="true"
            android:indeterminate="true"
            android:visibility="gone" />
    </RelativeLayout>
</LinearLayout>

answered Apr 27, 2018 at 20:59

cr05s19xx's user avatar

cr05s19xxcr05s19xx

2,9801 gold badge21 silver badges39 bronze badges

I had the same issue, I changed

compileSdkVersion 22 to compileSdkVersion 25

targetSdkVersion 22 to targetSdkVersion 25

implementation ‘com.android.support:appcompat-v7:22’
to
implementation ‘com.android.support:appcompat-v7:25’

That fixed the problem for me.

answered Sep 10, 2018 at 9:31

Hidayat Ullah's user avatar

This is old question, seems no body provide correct way to find AAPt2 error

AAPT2 error: check logs for details

it will different for each case.

So find correct error you should run assembelDebug
as suggest in here

Reference following image for run assembleDebug.

enter image description here

in My case actually corrupted png file and only failed with release build. so i have to run assembleRelese for find that issue.

answered Oct 18, 2018 at 9:58

UdayaLakmal's user avatar

UdayaLakmalUdayaLakmal

3,9754 gold badges29 silver badges40 bronze badges

This helped me. Adding these in build.gradle(Module:app)

defaultConfig {
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
}

answered May 10, 2019 at 17:56

Nabin Dhakal's user avatar

Nabin DhakalNabin Dhakal

1,8632 gold badges20 silver badges47 bronze badges

 I encountered this problem for the first time, and I searched it on the Internet, and concluded two possibilities:
                     0. No special symbols (<,>and many more) 
                     1. It may be that full-width is used for input, resulting in extra spaces.
                     2. Lost related layout tags.
                     3. It may be<?xml version="1.0" encoding="utf-8"?>Utf-8 encoding is not indicated in it.
                   However, I looked at both possibilities and they did not appear in my code. The final solution is to rely on the following method:
                   Move the mouse arrow to the wrong layout, click the right mouse button, select Source and then Format, and then clean.

                   Other references: 
                              <TextView
        android:id="@+id/operation"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" 
        />
 Change to
 <TextView>
        android:id="@+id/operation"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" 
        </TextView>

Я пытаюсь получить приложение «hello world», использующее Android Studio 3.0.1, и получить следующий вывод ошибки AAPT2:

Error:(16) error: not well-formed (invalid token).
Error:(16) not well-formed (invalid token).
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details...

Мне не удалось найти решение, может ли кто-нибудь помочь мне?

30 янв. 2018, в 20:36

Поделиться

Источник

3 ответа

«неверно сформированная» ошибка AAPT2 означает, что один из ваших XML файлов плохо сформирован, возможно, отсутствует закрывающая скобка или что-то подобное. Над ошибкой он должен сказать, из какого файла он исходит. Посмотрите на свою папку res/и файлы внутри.

Izabela Orlowska
05 фев. 2018, в 12:04

Поделиться

Отключите Instant Run, и он может работать для вас. Для меня это сработало

Manish Patiyal
30 март 2018, в 06:45

Поделиться

В gradle.properties добавить эту строку android.enableAapt2=false

mzeus.bolt
05 фев. 2018, в 12:45

Поделиться

Ещё вопросы

  • 1Соглашение о ключе Диффи-Хеллмана с использованием ключей RSA?
  • 1Наиболее частое частичное совпадение строк в списке строк
  • 0функция выхода из jquery
  • 1Android TextView и как определить количество видимых символов
  • 1ngFor внутри ngДля возникновения ошибки
  • 1Как хранить ключ шифрования .NET
  • 1Как получить оригинальные имена типов для элементарных типов в автоматически сгенерированных полях определенного типа в Resharper 8.1?
  • 1Intent-Filter в Сервисе
  • 0Лак 4, кеш страницы с печеньем
  • 1Многопроцессорность в вопросах Python
  • 0Regex группа повторного захвата в PHP
  • 0jQuery validate — предотвратить отображение метки ошибки
  • 1преобразование входного источника в значимые данные в Android
  • 0Динамический частичный AngularJS в $ templateCache удаляется
  • 1Используйте LINQ, чтобы получить элементы в списке
  • 0MySQL временная таблица в подзапросе
  • 0Вставка формы PHP в Mysql, почта и загрузка в той же форме
  • 1Как изменить местоположение, в котором свойства зависимостей появляются в окне свойств дизайнера WPF?
  • 1Как получить данные из сложной структуры объекта / массива?
  • 1Переход в Навбар при прокрутке вниз
  • 0c # HTML встроенные проблемы с цитатами
  • 1C # Использование интерфейса для доступа к методам
  • 0Используйте imagick и php, чтобы создать миниатюру изображения в выпадающем списке
  • 1Как изменить каталог DLL в проекте C #
  • 1Как совместить вкладки Android с другими представлениями?
  • 1Android — отправка данных из действия в службу
  • 0Node.js API с экспрессом и mysql — применять параметр поиска, только если установлен
  • 0Повторная отправка http-запроса, более быстрая (асинхронный режим)
  • 0Угловая фильтрация по значению поля
  • 1Модальные диалоги «Загрузка…» не являются хорошим решением для интерфейса?
  • 1Android AppНеисправности макета виджета с многоточием
  • 1Создание класса для сюжетов продукта
  • 1список с переменной высотой
  • 0Пожалуйста, подождите, пока панель загрузки при нажатии кнопки не отображается
  • 0ускорение сбоя при удалении condition_variable после форка
  • 0Где ошибка в этом запросе? (sql-ex.ru упражнение 25)
  • 0переменная не передает правильное значение. listAdd заканчивает тем, что был «[текст объекта] [текст объекта]» javascript
  • 0Подтвердить дату в Jquery
  • 0Какая из этих таблиц лучше всего подходит для производительности (столбцы и строки)?
  • 1Apache POI: Word получить размеры изображения
  • 0Выберите строки на основе заголовка
  • 1Ошибка вызова метода Vue через Vue Computed
  • 0Строгие стандарты: только переменные должны передаваться по ссылке? [Дубликат]
  • 0Защитить электронную таблицу с помощью PHP API Google Doc
  • 0Свести массив и сохранить индекс в качестве значения позиции
  • 0Скрыть все div по умолчанию при загрузке страницы, отображать: ни один не работает
  • 1Как отфильтровать имена полей в первой строке текстового файла в Python
  • 0C ++ Auto Typecast
  • 0Uncaught исключение «Google_Auth_Exception» с сообщением «Неверный код»
  • 1Почему моя программа возвращает «Нет обзора v1» вместо того, чтобы возвращать среднюю оценку для продуктов с отзывами? (Web scraping, python)

Сообщество Overcoder

Перепечатано из:https://blog.csdn.net/guozhaohui628/article/details/53446003

1. Пьяный, этот вид ошибки

Здесь я действительно хочу сказать, что когда я сталкиваюсь с такого рода сообщениями об ошибках, я действительно пьян, и через долгое время у меня есть ответ Baidu другим. Без дальнейших церемоний я сначала пойду на свою ошибку. неверный токен)

Информация: Задачи Gradle [clean,: app: generateDebugSources,: app: mockableAndroidJar ,: app: prepareDebugUnitTestDependencies,: app: generateDebugAndroidTestSources,: app: compileDebugSources ,: app: compileDebugUnitTestSources ,: app: seeroidSileD picture

2. Источники и ответы

Я строю свои макеты один за другим и, наконец, нашел причину ситуации, см. Рисунок

2643/ 

На самом деле, здесь легко узнать, что не так с содержанием в тексте, <да, это так. На самом деле, я узнал в последний раз по количеству сборок. На самом деле, как нам напомнили, но я никогда не видел этого Смотрите картинку

, Так что решение тоже очень простое, используйте @string. , В то же время нужно использовать escape-символы, не очень четкие предложения читать это,Все экранирующие персонажиОбратите внимание, чтобы ясно видеть, я просто хочу использовать символ <, но я не видел его четко и вызвал несколько ошибок. Во-первых, посмотрите, есть ли точка с запятой за ним.

Во-вторых, посмотрите на буквы i и l четко (я неправильно прочитал)

При сборке проекта часто стала выскакивать ошибка — и не могу собрать проект

15.10.2015, 13:59. Показов 2637. Ответов 3


Работал с одним проектом, забросил его. И тут решил доделать. Стала выскакивать ошибка. Что не так не понимаю.

Кликните здесь для просмотра всего текста

Checking project dependencies…
Compiling AxWork.dproj (Debug, Android)
dcc command line for «AxWork.dpr»
c:program files (x86)embarcaderostudio15.0bindccaarm.exe -$O- —no-config -M -Q -TX.so -AGenerics.Collections=System.Generics.Collections;
Generics.Defaults=System.Generics.Defaults;WinType s=Winapi.Windows;WinProcs=Winapi.WindowsbiTypes= BDEbiProcs=BDEbiErrs=BDE -DDEBUG
-E.AndroidDebug -I»c:program files (x86)embarcaderostudio15.0libAndroiddebug»;» c:program files
(x86)embarcaderostudio15.0libAndroidRelease» -LEC:UsersPublicDocumentsEmbarcaderoStudio15. 0BplAndroid
-LNC:UsersPublicDocumentsEmbarcaderoStudio15. 0DcpAndroid -NU.AndroidDebug -NSSystem;Xmlataatasnap;Web;Soap; -O»c:program files
(x86)embarcaderostudio15.0libAndroidRelease» -R»c:program files (x86)embarcaderostudio15.0libAndroidRelease» -U»c:program files
(x86)embarcaderostudio15.0libAndroiddebug»;» c:program files (x86)embarcaderostudio15.0libAndroidRelease»
—libpath:C:UsersPublicDocumentsEmbarcaderoStud io16.0PlatformSDKsandroid-ndk-r9cplatformsandroid-14arch-armusrlib;
C:UsersPublicDocumentsEmbarcaderoStudio16.0 PlatformSDKsandroid-ndk-r9csourcescxx-stlgnu-libstdc++4.8libsarmeabi-v7a
—linker:C:UsersPublicDocumentsEmbarcaderoStudi o16.0PlatformSDKsandroid-ndk-r9ctoolchainsarm-linux-androideabi-4.6prebuiltwindowsbinarm-linux-androideabi-ld.exe
-V -VN -NO.AndroidDebug AxWork.dpr
Success
Elapsed time: 00:00:17.1
Deploy
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—Clean=».AndroidDebugAxWork,C:UsersГвоздевDes ktopAxWork_and_imageAxWork._@emb_.tmp»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»C:UsersГвоздевDesktopAxWork_and_imageAnd roidDebugclasses.dex,.AndroidDebugAxWorkclas ses,1,classes.dex»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»resdrawable-normalsplash_image.png,.AndroidDebugAxWorkres drawable-normal,1,splash_image.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»AndroidDebuglibAxWork.so,.AndroidDebugAx Worklibrarylibarmeabi-v7a,1,libAxWork.so»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0binArtworkAndroid FM_LauncherIcon_144x144.png,.AndroidDebugAxWork resdrawable-xxhdpi,1,ic_launcher.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»ModelSupport_AxWorkdefault.txaPackage,.Andr oidDebugAxWorkassetsinternal,0,default.txaPac kage»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»ModelSupport_AxWorkdefault.txvpck,.Android DebugAxWorkassetsinternal,0,default.txvpck»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0libandroiddebugmi pslibnative-activity.so,.AndroidDebugAxWorklibrarylibmip s,1,libAxWork.so»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»C:UsersГвоздевDesktopAxWorkAndroidDebug classes.dex,.AndroidDebugAxWorkclasses,1,cla sses.dex»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»AndroidDebugsplash_image_def.xml,.Android DebugAxWorkresdrawable,1,splash_image_def.xml»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»resdrawable-xlargesplash_image.png,.AndroidDebugAxWorkres drawable-xlarge,1,splash_image.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»resdrawable-largesplash_image.png,.AndroidDebugAxWorkres drawable-large,1,splash_image.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0binArtworkAndroid FM_LauncherIcon_96x96.png,.AndroidDebugAxWorkr esdrawable-xhdpi,1,ic_launcher.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»C:UsersPublicDocumentsEmbarcaderoStudio 16.0PlatformSDKsandroid-ndk-r9cprebuiltandroid-armgdbservergdbserver,.AndroidDebugAxWorklib rarylibarmeabi-v7a,1,gdbserver»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0libandroiddebugcl asses.dex,.AndroidDebugAxWorkclasses,1,classe s.dex»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»resdrawable-smallsplash_image.png,.AndroidDebugAxWorkres drawable-small,1,splash_image.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0binArtworkAndroid FM_LauncherIcon_36x36.png,.AndroidDebugAxWorkr esdrawable-ldpi,1,ic_launcher.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0libandroiddebugar meabilibnative-activity.so,.AndroidDebugAxWorklibrarylibarm eabi,1,libAxWork.so»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0binArtworkAndroid FM_LauncherIcon_72x72.png,.AndroidDebugAxWorkr esdrawable-hdpi,1,ic_launcher.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0libandroiddebugx8 6libnative-activity.so,.AndroidDebugAxWorklibrarylibx86 ,1,libAxWork.so»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»c:program files
(x86)embarcaderostudio15.0binArtworkAndroid FM_LauncherIcon_48x48.png,.AndroidDebugAxWorkr esdrawable-mdpi,1,ic_launcher.png»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»AndroidDebugAndroidManifest.xml,.AndroidD ebugAxWork,1,AndroidManifest.xml»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8 —put=»AndroidDebugstyles.xml,.AndroidDebugAxWo rkresvalues,1,styles.xml»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—put=»C:UsersГвоздевDesktopAxWork_and_imagedep loyedassets.txt,.AndroidDebugAxWorkassetsdepl oyinfo,,»
paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—stripdebug=»C:UsersPublicDocumentsEmbarcadero Studio16.0PlatformSDKsandroid-ndk-r9ctoolchainsarm-linux-androideabi-4.6prebuiltwindowsbinarm-linux-androideabi-strip.exe,.AndroidDebugAxWorkdebuglibAxWork.s o,.AndroidDebugAxWorklibrarylibarmeabi-v7alibAxWork.so»

paclient command line
c:program files (x86)embarcaderostudio15.0binpaclient.exe -u8
—aaptpackage=»C:UsersPublicDocumentsEmbarcadero Studio16.0PlatformSDKsandroid-sdk-windowsbuild-tools19.1.0aapt.exe,.AndroidDebugAxWorklibra ry,.AndroidDebugAxWorkclasses,.AndroidDebug AxWorkres,.AndroidDebugAxWorkassets,.Android DebugAxWorkAndroidManifest.xml,C:UsersPublic DocumentsEmbarcaderoStudio16.0PlatformSDKsand roid-sdk-windowsplatformsandroid-19android.jar,.AndroidDebugAxWorkbinAxWork-unsigned.apk»

[PAClient Error] Error: E2312 Unable to execute ‘»C:UsersPublicDocumentsEmbarcaderoStudio16. 0PlatformSDKsandroid-sdk-windowsbuild-tools19.1.0aapt.exe» package -f -M «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkAndroidManifest.xml» -F «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkbinAxWork-unsigned.apk» -I «C:UsersPublicDocumentsEmbarcaderoStudio16.0 PlatformSDKsandroid-sdk-windowsplatformsandroid-19android.jar» -S «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkres» -A «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkassets» «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorklibrary» «C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkclasses»‘ (Error 1)
[PAClient Error] Error: E2312 C:UsersГвоздевDesktopAxWork_and_imageAndroid DebugAxWorkAndroidManifest.xml:32: error: Error parsing XML: not well-formed (invalid token)
Failed
Elapsed time: 00:00:03.3

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



  1. Nagori



    Thread Starter

    Please help I’ve got an error
    error: not well-formed (invalid token).
    Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #1

    here is my XML code

    <?xml version=»1.0″ encoding=»utf-8″?>
    <RelativeLayout
    xmlns:android=»http://schemas.android.com/apk/res/android»
    xmlns:tools=»http://schemas.android.com/tools»
    xmlns:app=»http://schemas.android.com/apk/res-auto»
    android:layout_width=»match_parent»
    android:layout_height=»match_parent»
    tools:context=».newsfeed»>
    <LinearLayout
    android:layout_width=»match_parent»
    android:layout_height=»70dp»
    android:layout_marginTop=»510dp»
    android:eek:rientation=»vertical»
    android:background=»#56ACDF»
    android:layout_alignParentStart=»true»
    android:layout_alignParentLeft=»true»>
    <ImageView
    android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    app:srcCompat=»@drawable/home»
    android:layout_marginLeft=»25dp»
    android:layout_marginTop=»12dp»
    android:contentDescription=»@String/home_icon»
    android:layout_marginStart=»25dp»/>
    <TextView android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    android:text=»@String/home»
    android:textColor=»#fff»
    android:textSize=»12sp»
    android:layout_marginLeft=»25dp»
    android:layout_marginTop=»1.5dp»
    android:layout_marginStart=»25dp»/>
    <ImageView
    android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    app:srcCompat=»@drawable/pencilruler»
    android:layout_marginLeft=»95dp»
    android:layout_marginTop=»-38dp»
    android:contentDescription=»@String/plannericon»
    android:layout_marginStart=»95dp»/>

    <TextView android:layout_width=»wrap_content»
    android:layout_height=»12dp»
    android:text=»@String/classes»
    android:textColor=»#fff»
    android:textSize=»12sp»
    android:layout_marginLeft=»86dp»
    android:layout_marginTop=»1.2dp»
    android:layout_marginStart=»86dp»/>

    <ImageView
    android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    app:srcCompat=»@drawable/planner»
    android:layout_marginLeft=»160dp»
    android:layout_marginTop=»-38dp»
    android:contentDescription=»@String/classesicon»
    android:layout_marginStart=»160dp»/>

    <TextView android:layout_width=»wrap_content»
    android:layout_height=»12dp»
    android:text=»@String/planner»
    android:textColor=»#fff»
    android:textSize=»12sp»
    android:layout_marginLeft=»156dp»
    android:layout_marginTop=»1.1dp»
    android:layout_marginStart=»156dp»/>

    <ImageView
    android:layout_width=»26dp»
    android:layout_height=»28dp»
    app:srcCompat=»@drawable/profile»
    android:layout_marginLeft=»235dp»
    android:layout_marginTop=»-39dp»
    android:contentDescription=»@String/profileicon»
    android:layout_marginStart=»235dp»/>

    <TextView android:layout_width=»wrap_content»
    android:layout_height=»12dp»
    android:text=»@String/profile»
    android:textColor=»#fff»
    android:textSize=»12sp»
    android:layout_marginLeft=»233dp»
    android:layout_marginTop=»0.5dp»
    android:layout_marginStart=»233dp»/>
    <ImageView
    android:layout_width=»wrap_content»
    android:layout_height=»28dp»
    app:srcCompat=»@drawable/chats»
    android:layout_marginLeft=»315dp»
    android:layout_marginTop=»-38dp»
    android:contentDescription=»@String/chaticon»
    android:layout_marginStart=»315dp»/>

    <TextView android:layout_width=»wrap_content»
    android:layout_height=»11dp»
    android:text=»@String/chats»
    android:textColor=»#fff»
    android:textSize=»12sp»
    android:layout_marginLeft=»315dp»
    android:layout_marginTop=»-1.1dp»
    android:layout_marginStart=»315dp»/>

    </LinearLayout>

    <ImageView android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    android:src=»@drawable/news»
    android:layout_marginTop=»40dp»
    android:layout_marginLeft=»105dp»
    android:contentDescription=»@String/newsicon»
    android:layout_marginStart=»105dp»/>

    <TextView android:layout_width=»wrap_content»
    android:layout_height=»wrap_content»
    android:text=»@String/welcome_to_mana_newsfeed»
    android:textColor=»#24292D»
    android:textSize=»22sp»
    android:layout_marginTop=»210dp»
    android:layout_marginLeft=»50dp»
    android:layout_marginStart=»50dp»/>

    <TextView android:layout_width=»270dp»
    android:layout_height=»70dp»
    android:text=»@String/newsFeed»
    android:textColor=»#5F6162″
    android:layout_marginTop=»260dp»
    android:layout_marginLeft=»60dp»
    android:textSize=»15sp»
    android:layout_marginStart=»60dp»/>

    </RelativeLayout>


    1. Download the Forums for Android™ app!

      Download

  2. Deleted User

    You’re missing a closing </LinearLayout> tag

  3. Nagori



    Thread Starter

    Thank you so much sir ☺ It is such a silly mistake.

Share This Page

Понравилась статья? Поделить с друзьями:
  • Aapt error is incompatible with attribute src attr reference color
  • Aapt error is incompatible with attribute background attr reference color
  • Aapt error file failed to compile
  • Aapt error failed to read png signature file does not start with png signature
  • Aae error 9178 was encountered