# Can't bundle project (unknown source error) (SOLVED)

**URL:** <https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214>\
**Category:** Questions\
**Created:** [September 3, 2020, 1:19pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214 "2020-09-03T13:19:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 3, 2020, 1:19pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/1 "2020-09-03T13:19:17Z")

</div>

When I attempt to bundle my project for Android or HTML5 suddenly I am getting an Unknown source Line 1: Expected identifier error. Since the source is unknown I have no idea what file is causing this issue and the project is quite large at this point… Has anyone encountered this or have a general way of investigating this bundle issue?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [September 3, 2020, 1:44pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/2 "2020-09-03T13:44:05Z")

</div>

Are you using any native extensions?  
You can see if you got a “log.txt” file in your build folder in your project.

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 3, 2020, 1:47pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/3 "2020-09-03T13:47:40Z")

</div>

I am using one but hasn’t been changed since the project started. I checked the Android build folder but the bundle process isn’t generating a new log.txt file (the one there is from yesterday when bundling was still working)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [September 3, 2020, 4:27pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/4 "2020-09-03T16:27:40Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> You can see if you got a “log.txt” file in your build folder in your project

We write [here](https://defold.com/manuals/extensions/#build-server-logs) that the log.txt is in the build.zip. Is that incorrect @JCash?

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 3, 2020, 4:32pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/5 "2020-09-03T16:32:52Z")

</div>

There’s a log.txt file in my Android build.zip folder. The issue for me is that the bundle process doesn’t get far enough to even generate a new build.zip

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [September 3, 2020, 4:51pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/6 "2020-09-03T16:51:04Z")

</div>

@britzl the build.zip is unzipped immediately after a remote build /successful or not)

Perhaps you can share the project?

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 3, 2020, 8:51pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/7 "2020-09-03T20:51:22Z")

</div>

I figured it out. There were some temp files left by my graphics editor (Krita) in the assets folder which broke the build process. After clearing them out it’s now functioning again. I also changed some logic elsewhere in the code but nothing that I think should affect the build since it was playing fine in debug/build mode for PC.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [September 3, 2020, 8:58pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/8 "2020-09-03T20:58:46Z")

</div>

> [@Epitaph64](#):
>
> temp files left by my graphics editor

Do you remember the extension of those temp files?

---

<div class="post-metadata">

**Author:** ![Epitaph64](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/epitaph64/32/39288_2.png) [@Epitaph64](https://forum.defold.com/u/Epitaph64)\
**Post date:** [September 3, 2020, 8:59pm UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/9 "2020-09-03T20:59:20Z")

</div>

Yes it was .png~

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [September 4, 2020, 12:57am UTC](https://forum.defold.com/t/cant-bundle-project-unknown-source-error-solved/66214/10 "2020-09-04T00:57:11Z")

</div>

If you encounter this again there’s a good chance if you bundled with bob directly it would have listed that file in the console. It would be worth testing to see if it catches it (the editor still needs to catch it too).

> **[Defold project builder manual](https://defold.com/manuals/bob/)**
>
> Bob is a command line tool for building Defold projects. This manual explains how to use the tool.
