Cant build for Android: Project 'Labs\CLtmpa13516 -PcoronaSrcDir=F' not found in root project 'Corona Android'

Hello, Im unable to build my app on PC. I tried in Solar 2D build 3600.
Here is console feed:

14:23:47.631 Corona Simulator 2020.3600 (Jun 15 2020 15:33:16)
14:23:47.631
14:23:47.631
14:23:47.631 Copyright © 2009-2020 C o r o n a L a b s I n c .
14:23:47.631 Version: 3.0.0
14:23:47.631 Build: 2020.3600
14:23:47.719 Platform: GenericAndroidDevice / x64 / 10.0 / GeForce GTX 1060 6GB/PCIe/SSE2 / 4.6.0 NVIDIA 445.87 / 2020.3600 / cs_CZ | CZ | cs_CZ | cs
14:23:47.719 Loading project from: F:\Dropbox\Jirka\Corona Projects\boxes_example
14:23:47.719 Project sandbox folder: C:\Users\Pc\AppData\Local\Corona Labs\Corona Simulator\Sandbox\boxes_example-0B1AA0F51AEAA8E178DC6D51E46932D2\Documents
14:24:12.993 Testing credentials for ‘F:\Dropbox\Jirka\Corona Projects\Vlacek_source\debug.keystore’:
14:24:13.938 jar signed.
14:24:13.938 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
14:24:33.133 Excluding specified files from build:
14:24:33.133 excluding: LaunchScreen.storyboardc
14:24:33.133 excluding: Icon.png
14:24:33.133 excluding: Icon-*dpi.png
14:24:33.133 excluding: Images.xcassets
14:24:33.133 To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/5.4.1/userguide/gradle_daemon.html.
14:24:33.133 Daemon will be stopped at the end of the build stopping after processing
14:24:33.133
14:24:33.133 > Configure project :App
14:24:33.133 Authorizing plugins
14:24:33.133 Unpacking plugins
14:24:33.133 Collecting plugin assets
14:24:33.133 Collecting plugin resources
14:24:33.133 Collecting plugin metadata
14:24:33.133 Output written to (C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa13516\template\app\build/intermediates/plugins_metadata.json)
14:24:33.133 Creating AndroidManifest.xml
14:24:33.133 Opening: C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa13516\template\app\build/intermediates/corona_manifest_gen/strings.xml
14:24:33.133 Opening: C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa13516\template\app\build/intermediates/corona_manifest_gen/CopyToApk.txt
14:24:33.133 Collecting native libraries
14:24:33.133 Collecting legacy jar libraries
14:24:33.133
14:24:33.133 FAILURE: Build failed with an exception.
14:24:33.133
14:24:33.133 * What went wrong:
14:24:33.133 Project ‘Labs\CLtmpa13516 -PcoronaSrcDir=F’ not found in root project ‘Corona Android’.
14:24:33.133
14:24:33.133 * Try:
14:24:33.133 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
14:24:33.133
14:24:33.133 * Get more help at https://help.gradle.org
14:24:33.133
14:24:33.133 BUILD FAILED in 17s
14:24:33.133 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
14:24:33.364 Android build failed (1) after 20 seconds

Im not sure what all of this meens but this line caught my attention:

Project ‘Labs\CLtmpa13516 -PcoronaSrcDir=F’ not found in root project ‘Corona Android’

Here is project I tried to build, it uses only physics and Ponywolf visual Monitor.
boxes_example.zip (4.5 MB)

If you know what could be going on, please help.

Strange, when I changed output folder, it compiled without errors…

It seems that problem was that output folder was right above project folder…

I had the same issue. Tried to reinstall Corona and Java many times.
But issue was solved after your advice to update “Save to Folder” at Android build windows.
Actually, I did not change the path, but just updated it with the same value.
Looks like a Corona’s bug

1 Like

Avoid Russian symbols anywhere on paths. That should fix it. Latest Solar2D builds ship with embedded java. Any installed java is ignored.

1 Like

This is bug report closed by @vlads

Issue is not solved. There are no Russian letters in path.
New installation of Corona/Solar2 sdk does Android build inpossible.

Please investigate and fix.

1 Like

I’ll try it again.

I just tried performing described steps, no luck. Everything works just fine. Also, use the latest build. 3630. It has java embedded and ignores system java.
EDIT: if you can still reproduce it please provide full build log.

So, any one can reproduce it? I want to fix it but it doesn’t seem like anyone can reproduce it…

This is from 3609, I will try the same think with latest build.

Repro steps:
Build for android.
Setup Save to folder as one step above project folder. In my case:

Save to folder:

F:\Dropbox\Jirka\Corona Projects\

Project folder:

F:\Dropbox\Jirka\Corona Projects\project_name

EDIT:
I confirm this is still present on latest build.
!!! This happens if you end your save to file path with " \ " like

F:\Dropbox\Jirka\Corona Projects\

Fail log:

22:42:13.611
22:42:13.611 Corona Simulator 2020.3609 (Aug 5 2020 13:58:56)
22:42:13.611
22:42:13.611
22:42:13.611 Copyright © 2009-2020 C o r o n a L a b s I n c .
22:42:13.611 Version: 3.0.0
22:42:13.611 Build: 2020.3609
22:42:13.783 Platform: SM-G900S / x64 / 10.0 / GeForce GTX 1060 6GB/PCIe/SSE2 / 4.6.0 NVIDIA 456.38 / 2020.3609 / cs_CZ | CZ | cs_CZ | cs
22:42:13.798 Loading project from: F:\Dropbox\Jirka\Corona Projects\tanks_working
22:42:13.798 Project sandbox folder: C:\Users\Pc\AppData\Local\Corona Labs\Corona Simulator\Sandbox\tanks_working-31FA805B33E6ACE5AD2AC1CA8F054965\Documents
22:43:17.954 Testing credentials for ‘F:\Dropbox\Jirka\Corona Projects\Vlacek_source\debug.keystore’:
22:43:18.798 jar signed.
22:43:18.798 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
22:43:28.180 Excluding specified files from build:
22:43:28.180 excluding: LaunchScreen.storyboardc
22:43:28.180 excluding: Icon.png
22:43:28.180 excluding: Icon-*dpi.png
22:43:28.180 excluding: Images.xcassets
22:43:28.180
22:43:28.180 Welcome to Gradle 6.1.1!
22:43:28.180
22:43:28.180 Here are the highlights of this release:
22:43:28.180 - Reusable dependency cache
22:43:28.180 - Configurable compilation order between Groovy/Kotlin/Java/Scala
22:43:28.180 - New sample projects in Gradle’s documentation
22:43:28.180
22:43:28.180 For more details see https://docs.gradle.org/6.1.1/release-notes.html
22:43:28.180
22:43:28.180 To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html.
22:43:28.180 Daemon will be stopped at the end of the build stopping after processing
22:43:28.180
22:43:28.180 > Configure project :App
22:43:28.180 Authorizing plugins
22:43:28.180 Unpacking plugins
22:43:28.180 Collecting plugin assets
22:43:28.180 Collecting plugin resources
22:43:28.180 Collecting plugin metadata
22:43:28.180 Output written to (C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa21756\template\app\build/intermediates/plugins_metadata.json)
22:43:28.180 Creating AndroidManifest.xml
22:43:28.180 Opening: C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa21756\template\app\build/intermediates/corona_manifest_gen/strings.xml
22:43:28.180 Opening: C:\Users\Pc\AppData\Local\Temp\Corona Labs\CLtmpa21756\template\app\build/intermediates/corona_manifest_gen/CopyToApk.txt
22:43:28.180 Collecting native libraries
22:43:28.180 Collecting legacy jar libraries
22:43:28.180
22:43:28.180 FAILURE: Build failed with an exception.
22:43:28.180
22:43:28.180 * What went wrong:
22:43:28.180 Project ‘Labs\CLtmpa21756 -PcoronaSrcDir=F’ not found in root project ‘Corona Android’.
22:43:28.180
22:43:28.180 * Try:
22:43:28.180 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
22:43:28.180
22:43:28.180 * Get more help at https://help.gradle.org
22:43:28.180
22:43:28.180 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
22:43:28.180 Use ‘–warning-mode all’ to show the individual deprecation warnings.
22:43:28.180 See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings
22:43:28.180
22:43:28.180 BUILD FAILED in 7s
22:43:28.180 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
22:43:28.413 Android build failed (1) after 10 seconds

1 Like

Does it work with a folder name like F:\Dropbox\Jirka\Corona Output\ instead of saving to the upper directory of your project?

No. Problem is “\” sign at the end of the path. Im convinced this is what causes the error.

Thanks a lot for reproducable issue report. This is fixed in latest build, among several other issues.

1 Like