Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
2
Question by joconnor · May 09, 2015 at 07:22 AM · androidassetpluginapkandroidplugin

How to include assets in an android plugin (aar)?

I'm building a plugin for android that includes a couple of assets in the various aar files ~ however when I build my test project the assets are missing from the apk. If I export the android project and build from Android Studio the assets are included. I'm not sure why this is happening or what I can do so that the assets are included when Unity makes the build.

The assets in the aar file are located in:
plugin.aar/assets/*
plugin.aar/assets/fonts/*

When I build with Unity.
unityproject.apk/assets/* <-- this folder is empty

When I build with Android Studio I get the results I'm looking for.
androidstudioproject.apk/assets/*
androidstudioproject.apk/assets/fonts/*

Comment
Add comment · Show 1
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 gpz22 · Jun 30, 2015 at 11:09 AM 0
Share

Any update on this?

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Yury-Habets · May 10, 2015 at 07:25 PM

This is a valid concern. Please submit a bug report with a repro project, and we'll handle that.

Thanks!

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 joconnor · May 12, 2015 at 01:05 PM 0
Share

Thank you, I've submitted a bug report. In the interim, extracting the assets and including them in /Assets/Plugins/Android/assets/ seems to resolve the issue.

avatar image
0

Answer by Ruslan Grigoryev · May 12, 2015 at 04:02 PM

Hi,

Thank you for this finding. Please file a bug report including small repro project that we will be able to repro and fix it.

Thank you in advance.

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 joconnor · May 12, 2015 at 04:10 PM 0
Share

I have :) http://fogbugz.unity3d.com/default.asp?696096_7dfvgl2hl0frptu4

avatar image
0

Answer by seaders · Aug 04, 2015 at 01:15 AM

Any update on this? Not bringing in the assets from the .aar bring concerns that the build process doesn't build with .aar files properly. Is that the case, or is this just a weird bug? Also, any estimation on when this might be fixed?

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 Yury-Habets ♦♦ · Aug 04, 2015 at 07:01 AM 0
Share

Yes - it should be working starting from 5.2.0b3.

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

7 People are following this question.

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

Related Questions

How to access or reference assets from Unity's Assets folder in Android plugin library? 0 Answers

Any resource for creating jar without extending UnityActivityPlayer? 1 Answer

Now that Unity 4.1.2 broke the Android plugin examples, what do you use to learn them? 1 Answer

How do I add a custom icon to an android game? 0 Answers

Calendar not showing when installing from apk 0 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