# Unity Android App Build Error

**URL:** <https://discuss.bitrise.io/t/unity-android-app-build-error/7300>\
**Category:** Builds\
**Created:** [December 10, 2018, 6:03am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300 "2018-12-10T06:03:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynmock](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lynmock](https://discuss.bitrise.io/u/lynmock)\
**Post date:** [December 10, 2018, 6:03am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/1 "2018-12-10T06:03:00Z")

</div>

## Description of the issue

I am now trying to build Unity Android App with bitrise, referring to the URL below.

> [@How to build a Unity project](http://discuss.bitrise.io/t/how-to-build-a-unity-project/1317):
>
> #steps summary download unity + support platform pkgs install all downloaded pkgs run unity for about 10-30 seconds without -batchmode and -nographics flags → this will create CACerts for unity → needed to run unity so sleep 30 and killall Unity activate unity run build script return license apk should be ready for deployment, iOS Xcode source requires archive step furthermorethinkingsmirk let’s build something cool #unity cmd-line tool - Macosx - installed from pkg /Applications/Unity/U…

However, when build is executed, the following Build log is output and an error occurs.

## Environment:

Activate Unity(exit code: 1)

Hybrid(Xamarin,lonic …) on macOS,includes Visual Studio for Mac,Stable Channel  
activate-ssh-key@4.0.3  
git-clone@4.0.13  
Unity-2018.2.18f1

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : YES
- _Does the issue happen sporadically, or every time?_ :every time
- _Does upgrading the build Step to the latest version help?_ : YES
- _When did the issue start?_ : 12/7

### Local reproduction

### Local reproduction: Linux / Android (docker based) stack builds

## Build log

–Excerpt

LICENSE SYSTEM [2018129 19:38:15] License activated successfully with user: [REDACTED]

LICENSE SYSTEM [2018129 19:38:15] Next license update check is after 2018-12-11T03:38:14

[Package Manager] Server::Start – Port 55320 was selected  
Launching external process: /Applications/Unity/Unity.app/Contents/Resources/PackageManager/Server/upm-macos

COMMAND LINE ARGUMENTS:  
/Applications/Unity/Unity.app/Contents/MacOS/Unity  
-quit  
-batchmode  
-serial  
(hidden)  
-username  
[REDACTED]  
-password  
(hidden)  
-logfile  
Assertion failed on expression: ‘!projectPath.empty()’

(Filename: /Users/builduser/buildslave/unity/build/Editor/Src/ProjectUtility.cpp Line: 536)

Rebuilding Library because the asset database could not be found!

(Filename: /Users/builduser/buildslave/unity/build/Modules/AssetDatabase/Editor/Shared/AssetDatabaseInitialization.cpp Line: 108)

Audio: FMOD Profiler initialized on port 54900  
FMOD initialized on nosound output  
Loading GUID ↔ Path mappings…0.000186 seconds  
Loading Asset Database…0.000009 seconds  
AssetDatabase consistency checks…0.000415 seconds  
Refreshing native plugins compatible for Editor in 0.03 ms, found 0 plugins.  
Preloading 0 native plugins for Editor in 0.00 ms.  
DisplayProgressbar: Unity Package Manager  
[Package Manager] Done resolving packages in 0.27s seconds  
[Package Manager] Failed to resolve packages: [Packages] directory does not exist. No packages loaded.

A re-import of the project may be required to fix the issue or a manual modification of Packages/manifest.json file.  
[Package Manager] Server::Kill – Server was shutdown

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [December 10, 2018, 11:18am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/2 "2018-12-10T11:18:02Z")

</div>

Hello there!

Could you pease send us the url of the latest build please? so we can check the logs for additional information?

---

<div class="post-metadata">

**Author:** ![lynmock](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lynmock](https://discuss.bitrise.io/u/lynmock)\
**Post date:** [December 11, 2018, 3:38am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/3 "2018-12-11T03:38:06Z")

</div>

Hi Fehersanyi-Bitrise,

here

> **[Bitrise - Mobile Continuous Integration and Delivery](https://app.bitrise.io/users/sign_in)**
>
> Mobile Continuous Integration and Delivery for your whole team, with dozens of integrations for your favourite services.

As far as logs are concerned, I think that the part involved is only the part I extracted earlier.

---

<div class="post-metadata">

**Author:** ![lynmock](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lynmock](https://discuss.bitrise.io/u/lynmock)\
**Post date:** [December 12, 2018, 5:35am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/4 "2018-12-12T05:35:20Z")

</div>

Since we do not use PackagerManager this time, we solved it by adding ‘- noUpm’ option.

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [December 13, 2018, 10:04am UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/5 "2018-12-13T10:04:45Z")

</div>

Hy @lynmock!

I’m glad you could solve it, and thanks for sharing the fix as well.

---

<div class="post-metadata">

**Author:** ![laszlo.szucs](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@laszlo.szucs](https://discuss.bitrise.io/u/laszlo.szucs)\
**Post date:** [December 18, 2018, 12:39pm UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/6 "2018-12-18T12:39:34Z")

</div>

Hi @lynmock,

Thanks for sharing your issue and the solution as well. I shall close this topic, but feel free to open a new one, should there be anything else you need help in! 🙂

---

<div class="post-metadata">

**Author:** ![laszlo.szucs](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@laszlo.szucs](https://discuss.bitrise.io/u/laszlo.szucs)\
**Post date:** [December 18, 2018, 12:39pm UTC](https://discuss.bitrise.io/t/unity-android-app-build-error/7300/7 "2018-12-18T12:39:59Z")

</div>


