Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by evelan · Dec 28, 2015 at 10:18 PM · androidandroid buildandroidpluginandroid-manifest

CommandInvokationFailure while using *.aar file in unity project

Hi, im trying to run android app on unity, but im getting errors.

 CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.my.app -S "C:\Users\Me\secondAarTest\Temp\StagingArea\android-libraries\unity-android-resources\res"
 
     stderr[
     C:\Users\Me\myapp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:92: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <TextView>
 
 stderr[
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml:26: error: No resource identifier found for attribute 'headerLayout' in package 'com.my.app'
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml:26: error: No resource identifier found for attribute 'menu' in package 'com.my.app'
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:24: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/background_material').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:40: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardbutton').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:40: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:47: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardbutton').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:47: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/download').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:55: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardbutton').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:55: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/cardboard').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:63: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardbutton').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:63: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/freeview').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:75: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardtext').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:84: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardtext').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\card_layout.xml:92: error: Error: No resource found that matches the given name (at 'style' with value '@style/cardtext').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\content_fragment.xml:6: error: Error: No resource found that matches the given name (at 'background' with value '@color/PrimaryColor').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\description_view.xml:4: error: Error: No resource found that matches the given name (at 'style' with value '@style/heading').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\description_view.xml:11: error: Error: No resource found that matches the given name (at 'style' with value '@style/text').
 
 C:\Users\Me\myApp\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\financial_view.xml:4: error: Error: No resource found that matches the given name (at 'style' with value '@style/heading').

and more...

I tried to unpack *.aar and copy only files from it but with the same result (same console output) Non of my xml files or drawable contain spaces or illegal chars

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Yury-Habets · Dec 29, 2015 at 08:15 AM

The issue seems to be with the files you add to Assets/Plugins/Android/res - there is a number of missing identifiers. Why do you add them if you are using an .aar plugin? There is a warning with this regard in the console. You should pack your resources into an Android library or an .aar instead.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image evelan · Dec 29, 2015 at 08:54 PM 0
Share

I added design and appcompat *.aar files to Android folder and now and errors gone

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

40 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Need some help with Unity Airpush plugin 0 Answers

Unable to package Android app resources, even when blank app. 100 following. 0 Answers

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 1 Answer

Android build problem 0 Answers

Unable to convert classes into dex format 12 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges