Hi, I get the following error attempting to build for Android on a new laptop running Windows 11 Home. I downloaded the latest version of Solar2d ( 2025.3714 ) to build a project and I get the following gradle error, “Error while fetching plugins”. I have tried installing different versions of the Java Development kit, but no luck. Not sure how to solve it.
Any ideas? Thanks
Platforms involved
Building on: Windows 11
Building for: Android
Attach your build.settings
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, “portraitUpsideDown” },
},
splashScreen =
{
android = { enable = false },
ios = { enable = false, },
},
--
-- Android section
--
android =
{
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.WRITE_EXTERNAL_STORAGE",
"android.permission.RECORD_AUDIO"
},
supportsScreens =
{
smallScreens = false,
normalScreens = false,
largeScreens = true,
xlargeScreens = true,
},
},
--
-- iOS section
--
iphone =
{
xcassets = "Images.xcassets",
plist =
{
UIStatusBarHidden = false,
UILaunchStoryboardName = "LaunchScreen",
ITSAppUsesNonExemptEncryption = false,
CFBundleLocalizations = {"en"},
NSPhotoLibraryUsageDescription = "This app would like to access the photo library.",
NSPhotoLibraryAddUsageDescription = "This app would like to access the photo library.",
NSMicrophoneUsageDescription = "This app would like to access the microphone.",
},
},
--
-- Project section
--
excludeFiles =
{
-- Exclude unnecessary files for each platform
all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
android = { "LaunchScreen.storyboardc", },
},
}
Full build log
Testing credentials for ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore’:
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
jar signed.
Warning:
The signer’s certificate is self-signed.
The timestamp will expire on 2031-11-09.
Excluding specified files from build:
excluding: LaunchScreen.storyboardc
excluding: Icon.png
excluding: Icon-*dpi.png
excluding: Images.xcassets
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Error while fetching plugins:
FAILURE: Build failed with an exception.
- Where:
Build file ‘C:\Users\quikc\AppData\Local\Temp\Corona Labs\CLtmpa09340\template\app\build.gradle.kts’ line: 574 - What went wrong:
Error while fetching plugins: - Try:
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.
Get more help at https://help.gradle.org.
BUILD FAILED in 8s
Android build failed (1) after 11 seconds