Entry name collided android

В сообщении об ошибке говорится: «Имя записи« res / layout / test_toolbar.xml »столкнулось» при создании подписанного apk

Я обновил свою андроид студию с 3.5.x до 3.6 сегодня и получаю сообщение об ошибке при создании подписанного apk для варианта сборки, показывающего следующее сообщение : «Имя записи« res / layout / test_toolbar.xml » столкнулось. У меня нет макета с таким именем один во всем проекте. У меня есть пользовательский вариант сборки под названием « stage », и всякий раз, когда я пытаюсь создать подписанный apk, он всегда терпит неудачу. Я считаю, найти решение еще. Пожалуйста, помогите мне с этим вопросом. Спасибо

Обновление: та же проблема может возникнуть с этими следующими сообщениями (как я нашел в AS — 3.6.1 ). Так что не беспокойтесь о таких неизвестных и неразрешимых сообщениях. Пока я обнаружил два новых типа сообщений при создании подписанного apk:

  • Entry name ‘kotlin/collections/MapWithDefault.kotlin_metadata’ collided
  • Access Denied

Решение такое же. Иногда вам может понадобиться Invalidate Cache and Restart ваша AS для этого. Дайте мне знать ваши выводы. Спасибо

Прежде чем читать решение ниже, пожалуйста, прочитайте мое обновление от 01.04.2020, проблема глубже и она есть в вашем коде.

У меня та же проблема после обновления 3.6.

* Быстрое решение: *

  1. удалить projectFolder \ build
  2. удалить projectFolder \ debug *
  3. удалить projectFolder \ release *
  4. удалить projectFolder \ app \ build
  5. удалить projectFolder \ app \ build \ debug *
  6. удалить projectFolder \ app \ build \ release *

Поэтому вам нужно удалить все каталоги сборки, отладки и выпуска.

Обратите внимание, что вы не сможете удалить целые каталоги отладки и выпуска , но вы можете удалить все их содержимое.

UPD:

Я думаю, что они исправили эту ошибку сегодня:

UPD 03.03.2020: К сожалению, ошибка не исправлена.

UPD 01.04.2020: (не шутка 1 апреля :))

Уже месяц я работал с разработчиками Android Studio, и сегодня мне сказали использовать jdk вместо jre, потому что это было из-за одной из глубоких ошибок в логах.

После установки jdk ( Файл-> Структура проекта- > Расположение SDK- > Расположение JDK ) вместо jre у меня появилось несколько других ошибок, которые не были показаны в «выводе сборки», поэтому я запускаю Анализ -> Проверить код и получаю ВОСЕМЬ ошибок такие как ссылка на неправильный идентификатор вида в макетах, ошибки с ориентацией (привет к tools:ignore=»MissingDefaultResource» ) и ошибки в манифесте также с ориентацией: я прочитал, что это новое обновление в 3.6.1 — о ландшафте или портрете screenOrientation , быстро исправленное Studio с помощью этого:

Читайте также:  View php on android

Когда все ошибки были исправлены с помощью Analyze -> Inspect Code, я успешно сгенерировал подписанный APK с помощью jdk, а затем с помощью jre (только для тестирования).

Итак, в итоге, эта ошибка вызвана из-за глубоких ошибок, которые вы можете обнаружить только с помощью Inspect Code инструмента.

Я думаю, что AS не будет думать, что это ошибка, я думаю, они сказали, что это новая функция для улучшения вашего кода. Также я думаю, что вы должны попытаться проверить свой код, даже не устанавливая jdk вместо jre.

Дополнительные рекомендации от службы поддержки AS:

Кстати, при экспорте release сборки мы также запускаем lintVital некоторые дополнительные проверки и отмечаем некоторые ошибки как fatal . Эта проверка стоит дорого, поэтому она не происходит в debug сборках

Источник

Entry name ‘AndroidManifest.xml’ collided #603

Comments

richard457 commented Feb 3, 2020 •

I am having issue using the dependency in android with the above error

  • sync-android artifact you are using:
    • cloudant-sync-datastore-android
    • cloudant-sync-datastore-android-encryption
    • cloudant-sync-datastore-javase
      —>

The text was updated successfully, but these errors were encountered:

emlaver commented Feb 3, 2020

Hello @richard457, can you please provide the error message and the versions of each artifact?

enylton commented Feb 17, 2021

Hello.
My first time trying to add couldant-sync to an Android app. I’m also having this issue.

The error message is:

I’m using implementation ‘com.cloudant:cloudant-sync-datastore-android-encryption:2.4.1’

ricellis commented Feb 25, 2021

We don’t ship an AndroidManifest.xml in any of our sync-android artifacts. The two AndroidManifest.xml in this repo are:

  • AndroidTest/app/src/main/AndroidManifest.xml — which is specifically for the test harness
  • sample/todo-sync/AndroidManifest.xml — for the sample application

AFAICT the error is caused by a combination of the Android Gradle plugin com.android.tools.build:gradle version 3.6 and this dependency (which contains it’s own AndroidManifest.xml )

compileOnly group : ‘ com.google.android ‘ , name : ‘ android ‘ , version : ‘ 4.0.1.2 ‘

As pointed out in the comment above there is a workaround available — this post lists a couple of other alternatives.

There are also strategies for manifest merging, but I’m not sure how usable they’ll be here because the discussion in this Google issue implies that the problem is related to AndroidManifest.xml being present in jar files which the tooling no longer allows (the dependencies are expected to be aar s).

Читайте также:  Андроид спящий режим отключен

I don’t think we can remove/change that dependency right now so I’d suggest using one of the workarounds.

I’m going to close this issue, but I’ve added a note #531 so we can try and improve the dependency situation when we update for the more modern Android build.

Источник

Resource collision after «Foursquare» dependency injection for Android native applica

leriano7

New member

Resource collision after «Foursquare» dependency injection for Android native applica

Hello guys: I’m using the next scenario for Android native applications development:

Android Studio 3.6.2

Graddle plugin 3.6.2

Graddle version 5.6.4

Kotlin version 1.3.61

I write the next dependency injection in my build.graddle.

When I build the project, and only after this injection (in packaging stage), I get this error:

Entry name ‘res/drawable/notification_bg_low.xml’ collided

As I have found in my personal search, in the project «build.properties» file, I add the next entry to fix the error:

android <
packagingOptions <
exclude ‘res/drawable/notification_bg_low.xml’
>
>

The collision is solved, but another collissions appear. The collision (which are found one in each build process) are the next ones:

Entry name ‘AndroidManifest.xml’ collided
Entry name ‘res/drawable/notification_bg.xml’ collided
Entry name ‘res/drawable/notification_bg_low.xml’ collided
Entry name ‘res/layout/notification_template_part_time.xml’ collided
Entry name ‘res/layout/notification_template_part_chronometer.xml’ collided
Entry name ‘resources.arsc’ collided

The only way I have found so far to fix this is to add all this files in my Project build.graddle file:

android <
packagingOptions <
exclude ‘AndroidManifest.xml’
exclude ‘res/drawable/notification_bg.xml’
exclude ‘res/drawable/notification_bg_low.xml’
exclude ‘res/layout/notification_template_part_time.xml’
exclude ‘res/layout/notification_template_part_chronometer.xml’
exclude ‘resources.arsc’
>
>

I don’t know if this is the correct solution.

Источник

Execution failed for task ‘:app:compressDebugAssets’. #1306

Comments

oleg-moseyko commented Feb 10, 2021 •

$ react-native info
info Fetching system and libraries information.
(node:62723) Warning: Accessing non-existent property ‘padLevels’ of module exports inside circular dependency
(Use node —trace-warnings . to show where the warning was created)
System:
OS: macOS 11.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 78.13 MB / 16.00 GB
Shell: 3.2.57 — /bin/bash
Binaries:
Node: 14.11.0 — /usr/local/bin/node
Yarn: 1.22.4 — /usr/local/bin/yarn
npm: 6.14.8 — /usr/local/bin/npm
Watchman: 4.9.0 — /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 — /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 23, 27, 28, 29, 30
Build Tools: 27.0.3, 28.0.3, 29.0.2, 30.0.1, 30.0.2, 30.0.3
System Images: android-28 | China version of Wear OS Intel x86 Atom, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6858069
Xcode: 12.3/12C33 — /usr/bin/xcodebuild
Languages:
Java: 15.0.1 — /usr/bin/javac
Python: 2.7.13 — /Applications/MAMP/Library/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Читайте также:  Как расплачиваться телефоном вместо карты для андроид альфа банк

Description

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compressDebugAssets’.

Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/AntDesign.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Entypo.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/EvilIcons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Feather.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/FontAwesome.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/FontAwesome5_Brands.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/FontAwesome5_Regular.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/FontAwesome5_Solid.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Fontisto.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Foundation.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Ionicons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/MaterialCommunityIcons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/MaterialIcons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Octicons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-Bold.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-BoldItalic.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-ExtraBold.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-ExtraBoldItalic.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-Italic.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-Light.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-LightItalic.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-Regular.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-SemiBold.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/OpenSans-SemiBoldItalic.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Roboto.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Roboto_medium.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/rubicon-icon-font.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/SimpleLineIcons.ttf’ collided
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
> Entry name ‘assets/fonts/Zocial.ttf’ collided

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью