How to offline build for Android like windows ?

App builds fine for windows but each time I am trying to build it for Android I get an error #1 “Error while fetching plugins”.
I see on the forum many people report this error but it seem there is no solution. it looks like this error occur because plugins are not downloaded correctly. is there a way to have a complete offline Engine to make APK file ???

i believe the biggest problem is the continuous updates and upgrades to play stores, which forces everyone to update everything … so solar2D has to update itself, and all plugins has to update as well …

the best way for you is just to report the problem, and the plugin creator will issue an update accordingly … sometimes you have to remove solar2d, and remove files in windows current user related to solar2d including roaming folders. … finally upgrade JDK, solar2d, and the latest plugins should download when you build … if it does not work you have to wait for fixes

I don’t remember how many times I reformat the disk ( factory default) to make sure there are any trace of solar2D.
The error still persist. My frustration is the console show 100% downloaded.
is someone can send me the working folder please ? and can simply copy and paste to my own.

please try to build an empty project … just the empty main.lua along with the default build.settings and the default config.lua

if you get a build then the problem is related to plugins, and you need to wait for an update from plugin creator … otherwise your PC or installtion would be missed up

I just buy a new computer, the last " Lenovo YOGA 7 series " with windows 10 Home version 20H2.
I just build an empty project with the default configuration without adding nothing. I get that in the console

18:11:37.500
18:11:37.500 Solar2D Simulator 2021.3656 (Sep 21 2021 18:37:21)
18:11:37.500
18:11:37.500 Copying directory AndroidResources
18:11:37.500 Copying directory res
18:11:37.500 Copying directory mipmap-anydpi-v26
18:11:37.500 Copying file ic_launcher.xml
18:11:37.500 Copying directory mipmap-hdpi
18:11:37.500 Copying file ic_launcher.png
18:11:37.500 Copying file ic_launcher_foreground.png
18:11:37.500 Copying directory mipmap-mdpi
18:11:37.500 Copying file ic_launcher.png
18:11:37.500 Copying file ic_launcher_foreground.png
18:11:37.500 Copying directory mipmap-xhdpi
18:11:37.500 Copying file ic_launcher.png
18:11:37.500 Copying file ic_launcher_foreground.png
18:11:37.500 Copying directory mipmap-xxhdpi
18:11:37.500 Copying file ic_launcher.png
18:11:37.500 Copying file ic_launcher_foreground.png
18:11:37.500 Copying directory mipmap-xxxhdpi
18:11:37.500 Copying file ic_launcher.png
18:11:37.500 Copying file ic_launcher_foreground.png
18:11:37.500 Copying directory values
18:11:37.500 Copying file values.xml
18:11:37.500 Copying file Icon.png
18:11:37.500 Copying directory Images.xcassets
18:11:37.500 Copying directory AppIcon.appiconset
18:11:37.500 Copying file Contents.json
18:11:37.500 Copying file Icon-1024.png
18:11:37.500 Copying file Icon-120.png
18:11:37.500 Copying file Icon-152.png
18:11:37.500 Copying file Icon-167.png
18:11:37.500 Copying file Icon-180.png
18:11:37.500 Copying file Icon-40.png
18:11:37.500 Copying file Icon-58.png
18:11:37.500 Copying file Icon-76.png
18:11:37.500 Copying file Icon-80.png
18:11:37.500 Copying file Icon-87.png
18:11:37.500 Copying file Contents.json
18:11:37.500 Copying directory LaunchScreen.storyboardc
18:11:37.500 Copying file 01J-lp-oVM-view-Ze5-6b-2t3.nib
18:11:37.500 Copying file designable.storyboard
18:11:37.500 Copying file Info.plist
18:11:37.500 Copying file UIViewController-01J-lp-oVM.nib
18:11:37.500 Copying file main.lua
18:11:37.500
18:11:37.500 Copyright © 2009-2021 C o r o n a L a b s I n c .
18:11:37.500 Version: 3.0.0
18:11:37.500 Build: 2021.3656
18:11:37.500 Platform: SM-G900S / x64 / 10.0 / Intel® Iris® Xe Graphics / 4.6.0 - Build 27.20.100.8853 / 2021.3656 / en_US | US | en_US | en
18:11:37.501 Loading project from: C:\Users\Steeve\Documents\Corona Projects\blankproject
18:11:37.501 Project sandbox folder: C:\Users\Steeve\AppData\Local\Corona Labs\Corona Simulator\Sandbox\blankproject-297FFAA193083FEFA22EE5E4D9B3D807\Documents
18:11:38.374
18:11:38.374 Copyright © 2009-2021 C o r o n a L a b s I n c .
18:11:38.374 Version: 3.0.0
18:11:38.374 Build: 2021.3656
18:11:38.374 Platform: SM-G900S / x64 / 10.0 / Intel® Iris® Xe Graphics / 4.6.0 - Build 27.20.100.8853 / 2021.3656 / en_US | US | en_US | en
18:11:38.374 Loading project from: C:\Users\Steeve\Documents\Corona Projects\blankproject
18:11:38.374 Project sandbox folder: C:\Users\Steeve\AppData\Local\Corona Labs\Corona Simulator\Sandbox\blankproject-297FFAA193083FEFA22EE5E4D9B3D807\Documents
18:11:51.974 Testing credentials for ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore’:
18:12:02.332 jar signed.
18:12:02.332
18:12:02.332 Warning:
18:12:02.332 The signer’s certificate is self-signed.
18:12:02.332
18:12:02.332 The timestamp will expire on 2031-01-05.
18:12:02.332 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
18:12:02.332 Prepackage: Compiling Lua …
18:12:02.349 Excluding specified files from build:
18:12:02.349 excluding: LaunchScreen.storyboardc
18:12:02.349 excluding: Icon.png
18:12:02.349 excluding: Icon-*dpi.png
18:12:02.349 excluding: Images.xcassets
18:12:02.349 Prepackage: Building server data file
18:12:02.349 Prepackage: running: “C:\Program Files (x86)\Corona Labs\Corona\jre\bin\java.exe” -Djava.class.path=“C:\Program Files (x86)\Corona Labs\Corona\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona\Resources/ant-launcher.jar;C:\Program Files (x86)\Corona Labs\Corona\Resources/AntLiveManifest.jar” org.apache.tools.ant.launch.Launcher -d -DTEMP_DIR=“C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248” -DSRC_DIR=“C:\Users\Steeve\Documents\Corona Projects\blankproject” -DBUNDLE_DIR=“C:\Program Files (x86)\Corona Labs\Corona\Resources” -DLIVE_BUILD=NO -DLIVE_BUILD_MANIFEST_FILE= -f “C:\Program Files (x86)\Corona Labs\Corona\Resources”/build.xml build-input-zip
18:12:03.330 Apache Ant version 1.8.1 compiled on April 30 2010
18:12:03.330 Buildfile: C:\Program Files (x86)\Corona Labs\Corona\Resources\build.xml
18:12:03.330 Adding reference: ant.PropertyHelper
18:12:03.330 Detected Java version: 1.6 in: C:\Program Files (x86)\Corona Labs\Corona\jre\jre
18:12:03.330 Detected OS: Windows 10
18:12:03.330 Adding reference: ant.ComponentHelper
18:12:03.330 Setting ro project property: LIVE_BUILD -> NO
18:12:03.330 Setting ro project property: BUNDLE_DIR -> C:\Program Files (x86)\Corona Labs\Corona\Resources
18:12:03.330 Setting ro project property: SRC_DIR -> C:\Users\Steeve\Documents\Corona Projects\blankproject
18:12:03.330 Setting ro project property: TEMP_DIR -> C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248
18:12:03.330 Setting ro project property: LIVE_BUILD_MANIFEST_FILE ->
18:12:03.330 Setting ro project property: ant.file -> C:\Program Files (x86)\Corona Labs\Corona\Resources\build.xml
18:12:03.330 Setting ro project property: ant.file.type -> file
18:12:03.330 Adding reference: ant.projectHelper
18:12:03.330 Adding reference: ant.parsing.context
18:12:03.330 Adding reference: ant.targets
18:12:03.330 parsing buildfile C:\Program Files (x86)\Corona Labs\Corona\Resources\build.xml with URI = file:/C:/Program%20Files%20(x86)/Corona%20Labs/Corona/Resources/build.xml
18:12:03.330 Setting ro project property: ant.project.name -> Corona Client Build
18:12:03.330 Adding reference: Corona Client Build
18:12:03.330 Setting ro project property: ant.project.default-target -> none
18:12:03.330 Setting ro project property: ant.file.Corona Client Build -> C:\Program Files (x86)\Corona Labs\Corona\Resources\build.xml
18:12:03.330 Setting ro project property: ant.file.type.Corona Client Build -> file
18:12:03.330 Project base dir set to: C:\Program Files (x86)\Corona Labs\Corona\Resources
18:12:03.330 +Target:
18:12:03.330 +Target: generate-live-build-manifest
18:12:03.330 +Target: check-gradle-bundle
18:12:03.330 +Target: setup-gradle-builds
18:12:03.330 +Target: build-input-zip
18:12:03.330 +Target: unzip-apk-template
18:12:03.330 +Target: find-main-application-icons
18:12:03.330 +Target: find-main-application-banner
18:12:03.330 +Target: find-ouya-application-icon
18:12:03.330 +Target: find-ouya-xiaomi-application-icon
18:12:03.330 +Target: find-default-notification-icons
18:12:03.330 +Target: copy-file
18:12:03.330 +Target: can-copy-file
18:12:03.330 +Target: delete-file
18:12:03.330 +Target: can-delete-file
18:12:03.330 +Target: insert-main-application-icons
18:12:03.330 +Target: insert-main-application-banner
18:12:03.330 +Target: insert-ouya-application-icon
18:12:03.330 +Target: insert-ouya-xiaomi-application-icon
18:12:03.330 +Target: insert-default-notification-icons
18:12:03.330 +Target: insert-assets-multi-icon
18:12:03.330 +Target: copy-apk-assets
18:12:03.330 +Target: copy-files-to-apk
18:12:03.330 +Target: sign-apk
18:12:03.330 +Target: sign-apk-md5
18:12:03.330 +Target: sign-apk-sha1
18:12:03.330 +Target: sign-apk-auto
18:12:03.330 +Target: build-unsigned-apk
18:12:03.330 +Target: build-signed-apk
18:12:03.330 +Target: build-expansion-file
18:12:03.330 +Target: copy-apk-to
18:12:03.330 +Target: copy-to
18:12:03.330 +Target: build
18:12:03.330 +Target: test-sign
18:12:03.330 Adding reference: ant.LocalProperties
18:12:03.330 parsing buildfile jar:file:/C:/Program%20Files%20(x86)/Corona%20Labs/Corona/Resources/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/Program%20Files%20(x86)/Corona%20Labs/Corona/Resources/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
18:12:03.330 [property] Loading C:\Program Files (x86)\Corona Labs\Corona\Resources\build.properties
18:12:03.330 Setting project property: ANDROID_ROOT -> /usr/local/bin/android-sdk-mac_x86
18:12:03.330 Setting project property: ANDROID_API_VERSION -> android-8
18:12:03.330 Setting project property: USER_ACTIVITY_PATH -> com/ansca/test/analyticstest
18:12:03.330 Setting project property: ANDROID_VERSION -> android-8
18:12:03.330 Setting project property: USER_ACTIVITY_PACKAGE -> com.ansca.test.analyticstest
18:12:03.330 Setting project property: ANDROID_MIN_SDK_INTEGER_VERSION -> 8
18:12:03.330 Setting project property: CORONA_ROOT -> /Volumes/Ansca/code/main
18:12:03.330 Setting project property: USER_APP_DISPLAY_NAME -> analyticstest
18:12:03.330 Override ignored for property “SRC_DIR”
18:12:03.330 Setting project property: APK_APP_NAME -> MyCoronaActivity
18:12:03.330 Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader (parentFirst)
18:12:03.330 Condition true; setting SCRIPT_EXT to exe
18:12:03.330 Setting project property: SCRIPT_EXT -> exe
18:12:03.330 Override ignored for property “SCRIPT_EXT”
18:12:03.330 Condition true; setting USE_OLD_TOUCH to true
18:12:03.330 Setting project property: USE_OLD_TOUCH -> true
18:12:03.330 Condition true; setting onWindows to true
18:12:03.330 Setting project property: onWindows -> true
18:12:03.330 Class org.apache.tools.ant.taskdefs.condition.Equals loaded from parent loader (parentFirst)
18:12:03.330 Condition false; not setting live.build
18:12:03.330 Adding reference: asset.fileset
18:12:03.330 [available] Found: C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\android
18:12:03.330 Condition true; setting corona.native.android to C:\Program Files (x86)\Corona Labs\Corona\Resources/…/Native/Corona/android
18:12:03.330 Setting project property: corona.native.android -> C:\Program Files (x86)\Corona Labs\Corona\Resources/…/Native/Corona/android
18:12:03.330 [available] Unable to find C:\Program Files (x86)\Native\Corona\android
18:12:03.330 Condition false; not setting corona.native.android
18:12:03.330 [available] Unable to find …\android
18:12:03.330 Condition false; not setting corona.native.android
18:12:03.330 [available] Unable to find C:\Users\Steeve\Library\Application Support\Corona\Native\Corona\android
18:12:03.330 Condition false; not setting corona.native.android
18:12:03.330 +Datatype copy-res-file org.apache.tools.ant.taskdefs.MacroInstance
18:12:03.330 [macrodef] creating macro copy-res-file
18:12:03.330 +Datatype copy-drawable-file org.apache.tools.ant.taskdefs.MacroInstance
18:12:03.330 [macrodef] creating macro copy-drawable-file
18:12:03.330 +Datatype copy-mipmap-file org.apache.tools.ant.taskdefs.MacroInstance
18:12:03.330 [macrodef] creating macro copy-mipmap-file
18:12:03.330 +Datatype copy-notification-icon org.apache.tools.ant.taskdefs.MacroInstance
18:12:03.330 [macrodef] creating macro copy-notification-icon
18:12:03.330 Setting ro project property: ant.project.invoked-targets -> build-input-zip
18:12:03.330 Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
18:12:03.330 Adding reference: ant.executor
18:12:03.330 Build sequence for target(s) `build-input-zip’ is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip]
18:12:03.330 Complete build sequence is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip, can-delete-file, unzip-apk-template, build-unsigned-apk, sign-apk-md5, sign-apk-sha1, can-copy-file, build-signed-apk, copy-files-to-apk, copy-apk-assets, test-sign, find-ouya-xiaomi-application-icon, insert-ouya-xiaomi-application-icon, copy-apk-to, sign-apk-auto, sign-apk, find-main-application-banner, insert-main-application-banner, find-main-application-icons, insert-main-application-icons, find-default-notification-icons, insert-default-notification-icons, insert-assets-multi-icon, build-expansion-file, copy-to, build, find-ouya-application-icon, insert-ouya-application-icon, copy-file, , delete-file]
18:12:03.330
18:12:03.330 generate-live-build-manifest:
18:12:03.330 Skipped because property ‘live.build’ not set.
18:12:03.330
18:12:03.330 check-gradle-bundle:
18:12:03.330 [available] Found: C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\android\resource\android-template.zip
18:12:03.330 Setting project property: gradle.bundle.exists -> true
18:12:03.330
18:12:03.330 setup-gradle-builds:
18:12:03.330 [unzip] Expanding: C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\android\resource\android-template.zip into C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248
18:12:03.330 [unzip] extracting template/gradlew.bat
18:12:03.330 [unzip] expanding template/gradlew.bat to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradlew.bat
18:12:03.330 [unzip] extracting template/setup.sh
18:12:03.330 [unzip] expanding template/setup.sh to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\setup.sh
18:12:03.330 [unzip] extracting template/gradle.properties
18:12:03.330 [unzip] expanding template/gradle.properties to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradle.properties
18:12:03.330 [unzip] extracting template/app/
18:12:03.330 [unzip] expanding template/app/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app
18:12:03.330 [unzip] extracting template/app/build.gradle.kts
18:12:03.330 [unzip] expanding template/app/build.gradle.kts to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\build.gradle.kts
18:12:03.330 [unzip] extracting template/gradle/wrapper/gradle-wrapper.properties
18:12:03.330 [unzip] expanding template/gradle/wrapper/gradle-wrapper.properties to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradle\wrapper\gradle-wrapper.properties
18:12:03.330 [unzip] extracting template/app/src/main/
18:12:03.330 [unzip] expanding template/app/src/main/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src\main
18:12:03.330 [unzip] extracting sdk/licenses/android-sdk-license
18:12:03.330 [unzip] expanding sdk/licenses/android-sdk-license to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\sdk\licenses\android-sdk-license
18:12:03.330 [unzip] extracting template/app/buildTools/strings.xml
18:12:03.330 [unzip] expanding template/app/buildTools/strings.xml to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\buildTools\strings.xml
18:12:03.330 [unzip] extracting template/app/_corona_splash_screen.png
18:12:03.330 [unzip] expanding template/app/_corona_splash_screen.png to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app_corona_splash_screen.png
18:12:03.330 [unzip] extracting template/app/src/main/res/values/
18:12:03.330 [unzip] expanding template/app/src/main/res/values/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src\main\res\values
18:12:03.330 [unzip] extracting template/
18:12:03.330 [unzip] expanding template/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template
18:12:03.330 [unzip] extracting sdk/
18:12:03.330 [unzip] expanding sdk/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\sdk
18:12:03.330 [unzip] extracting template/gradlew
18:12:03.330 [unzip] expanding template/gradlew to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradlew
18:12:03.330 [unzip] extracting template/app/proguard-rules.pro
18:12:03.330 [unzip] expanding template/app/proguard-rules.pro to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\proguard-rules.pro
18:12:03.330 [unzip] extracting template/app/buildTools/update_manifest.lua
18:12:03.330 [unzip] expanding template/app/buildTools/update_manifest.lua to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\buildTools\update_manifest.lua
18:12:03.330 [unzip] extracting template/preloadedAssets/build.gradle.kts
18:12:03.331 [unzip] expanding template/preloadedAssets/build.gradle.kts to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\preloadedAssets\build.gradle.kts
18:12:03.331 [unzip] extracting template/app/buildTools/convert_metadata.lua
18:12:03.331 [unzip] expanding template/app/buildTools/convert_metadata.lua to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\buildTools\convert_metadata.lua
18:12:03.331 [unzip] extracting template/app/src/main/res/
18:12:03.331 [unzip] expanding template/app/src/main/res/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src\main\res
18:12:03.331 [unzip] extracting template/gradle/wrapper/
18:12:03.331 [unzip] expanding template/gradle/wrapper/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradle\wrapper
18:12:03.331 [unzip] extracting template/gradle/wrapper/gradle-wrapper.jar
18:12:03.331 [unzip] expanding template/gradle/wrapper/gradle-wrapper.jar to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradle\wrapper\gradle-wrapper.jar
18:12:03.331 [unzip] extracting template/settings.gradle.kts
18:12:03.331 [unzip] expanding template/settings.gradle.kts to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\settings.gradle.kts
18:12:03.331 [unzip] extracting template/app/src/
18:12:03.331 [unzip] expanding template/app/src/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src
18:12:03.331 [unzip] extracting template/gradle/
18:12:03.331 [unzip] expanding template/gradle/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\gradle
18:12:03.331 [unzip] extracting template/app/src/main/res/values/strings.xml
18:12:03.331 [unzip] expanding template/app/src/main/res/values/strings.xml to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src\main\res\values\strings.xml
18:12:03.331 [unzip] extracting template/app/buildTools/
18:12:03.331 [unzip] expanding template/app/buildTools/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\buildTools
18:12:03.331 [unzip] extracting template/build.gradle.kts
18:12:03.331 [unzip] expanding template/build.gradle.kts to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\build.gradle.kts
18:12:03.331 [unzip] extracting template/app/libs/licensing-google.jar
18:12:03.331 [unzip] expanding template/app/libs/licensing-google.jar to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\libs\licensing-google.jar
18:12:03.331 [unzip] extracting template/app/buildTools/AndroidManifest.template.xml
18:12:03.331 [unzip] expanding template/app/buildTools/AndroidManifest.template.xml to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\buildTools\AndroidManifest.template.xml
18:12:03.331 [unzip] extracting template/app/libs/
18:12:03.331 [unzip] expanding template/app/libs/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\libs
18:12:03.331 [unzip] extracting sdk/licenses/
18:12:03.331 [unzip] expanding sdk/licenses/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\sdk\licenses
18:12:03.331 [unzip] extracting template/setup.bat
18:12:03.331 [unzip] expanding template/setup.bat to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\setup.bat
18:12:03.331 [unzip] extracting template/preloadedAssets/
18:12:03.331 [unzip] expanding template/preloadedAssets/ to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\preloadedAssets
18:12:03.331 [unzip] extracting template/app/src/main/AndroidManifest.xml
18:12:03.331 [unzip] expanding template/app/src/main/AndroidManifest.xml to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\src\main\AndroidManifest.xml
18:12:03.331 [unzip] expand complete
18:12:03.331 fileset: Setup scanner in dir C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\android\lib\gradle with patternSet{ includes: [] excludes: [] }
18:12:03.331 [copy] Corona.aar added as Corona.aar doesn’t exist.
18:12:03.331 [copy] added as is outdated.
18:12:03.331 [copy] Copying 1 file to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\libs
18:12:03.331 [copy] Copying C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\android\lib\gradle\Corona.aar to C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\libs\Corona.aar
18:12:03.331
18:12:03.331 build-input-zip:
18:12:03.331 Setting project property: USER_ZIP -> C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248/input.zip
18:12:03.331 fileset: Setup scanner in dir C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248 with patternSet{ includes: [] excludes: [resource.car] }
18:12:03.331 [zip] Building zip: C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\input.zip
18:12:03.331 [zip] adding directory sdk/
18:12:03.331 [zip] adding directory sdk/licenses/
18:12:03.331 [zip] adding directory template/
18:12:03.331 [zip] adding directory template/app/
18:12:03.331 [zip] adding directory template/app/buildTools/
18:12:03.331 [zip] adding directory template/app/libs/
18:12:03.331 [zip] adding directory template/app/src/
18:12:03.331 [zip] adding directory template/app/src/main/
18:12:03.331 [zip] adding directory template/app/src/main/res/
18:12:03.331 [zip] adding directory template/app/src/main/res/values/
18:12:03.331 [zip] adding directory template/gradle/
18:12:03.331 [zip] adding directory template/gradle/wrapper/
18:12:03.331 [zip] adding directory template/preloadedAssets/
18:12:03.331 [zip] adding entry build.properties
18:12:03.331 [zip] adding entry config.lu
18:12:03.331 [zip] adding entry excludesfile.properties
18:12:03.331 [zip] adding entry main.lu
18:12:03.331 [zip] adding entry sdk/licenses/android-sdk-license
18:12:03.331 [zip] adding entry template/app/_corona_splash_screen.png
18:12:03.331 [zip] adding entry template/app/build.gradle.kts
18:12:03.331 [zip] adding entry template/app/buildTools/AndroidManifest.template.xml
18:12:03.331 [zip] adding entry template/app/buildTools/convert_metadata.lua
18:12:03.331 [zip] adding entry template/app/buildTools/strings.xml
18:12:03.331 [zip] adding entry template/app/buildTools/update_manifest.lua
18:12:03.331 [zip] adding entry template/app/libs/Corona.aar
18:12:03.331 [zip] adding entry template/app/libs/licensing-google.jar
18:12:03.331 [zip] adding entry template/app/proguard-rules.pro
18:12:03.331 [zip] adding entry template/app/src/main/AndroidManifest.xml
18:12:03.331 [zip] adding entry template/app/src/main/res/values/strings.xml
18:12:03.331 [zip] adding entry template/build.gradle.kts
18:12:03.331 [zip] adding entry template/gradle.properties
18:12:03.331 [zip] adding entry template/gradle/wrapper/gradle-wrapper.jar
18:12:03.331 [zip] adding entry template/gradle/wrapper/gradle-wrapper.properties
18:12:03.331 [zip] adding entry template/gradlew
18:12:03.331 [zip] adding entry template/gradlew.bat
18:12:03.331 [zip] adding entry template/preloadedAssets/build.gradle.kts
18:12:03.331 [zip] adding entry template/settings.gradle.kts
18:12:03.331 [zip] adding entry template/setup.bat
18:12:03.331 [zip] adding entry template/setup.sh
18:12:03.331
18:12:03.331 BUILD SUCCESSFUL
18:12:03.331 Total time: 0 seconds
18:12:03.331 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
18:12:03.346 DeviceBuildData: {“isLaunchPadActive”:false,“targetCertType”:“developer”,“targetPlatformVersion”:140300,“debugBuildProcess”:5,“targetDevice”:0,“dailyBuildRevision”:3656,“clientPlatform”:“Win”,“targetAppStore”:“amazon”,“targetPlatform”:3,“clientDeviceId”:“23b33a7c241428d140e2778003690781”,“plugins”:[],“dailyBuildYear”:2021,“clientProductId”:“basic”,“appName”:“blankproject”}
18:12:03.346 Build: running: cd /d “C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248” && cd template && setup.bat && gradlew.bat buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2021.3656 -PcoronaResourcesDir=“C:\Program Files (x86)\Corona Labs\Corona\Resources” -PcoronaDstDir=“C:\Users\Steeve\Documents\Corona Built Apps” -PcoronaTmpDir=“C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248” -PcoronaSrcDir=“C:\Users\Steeve\Documents\Corona Projects\blankproject” -PcoronaAppFileName=“blankproject” -PcoronaAppPackage=“com.solar2d.app.blankproject” -PcoronaVersionCode=1 -PcoronaVersionName=“1.0.0” -PcoronaKeystore=“C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore” -PcoronaKeystorePassword=“XXXXXX” -PcoronaKeyAlias=“androiddebugkey” -PcoronaTargetStore=“amazon” -PcoronaKeyAliasPassword=“XXXXXX” -PcoronaBuildData=“C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\build.data” --console=plain
18:12:09.071 To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
18:12:09.071 Daemon will be stopped at the end of the build
18:12:09.071
18:12:09.071 > Configure project :App
18:12:09.071 WARNING:: The option setting ‘android.enableResourceOptimizations=false’ is deprecated.
18:12:09.071 The current default is ‘true’.
18:12:09.071 It will be removed in version 7.0 of the Android Gradle plugin.
18:12:09.071 Authorizing plugins
18:12:09.071 Error while fetching plugins:
18:12:09.071
18:12:09.071 FAILURE: Build failed with an exception.
18:12:09.071
18:12:09.071 * Where:
18:12:09.071 Build file ‘C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa04248\template\app\build.gradle.kts’ line: 554
18:12:09.071
18:12:09.071 * What went wrong:
18:12:09.071 Error while fetching plugins:
18:12:09.071
18:12:09.071 * Try:
18:12:09.071 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.
18:12:09.071
18:12:09.071 * Get more help at https://help.gradle.org
18:12:09.071
18:12:09.071 BUILD FAILED in 5s
18:12:09.071 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
18:12:09.354 Android build failed (1) after 7 seconds

My advice for you is to uninstall current Java that you have

then install latest JDK from here

and MOST IMPORTANTLY make sure to delete those paths before you run corona simulator

C:\Users%YourWindowsLoginName%.android
C:\Users%YourWindowsLoginName%.cache
C:\Users%YourWindowsLoginName%.gradle

C:\Users%YourWindowsLoginName%\AppData\Roaming\Corona Labs
C:\Users%YourWindowsLoginName%\AppData\Roaming\Solar2DPlugins

because most of the times when you install a new version of Solar2D some old cached files will remain here

Be aware that deleting those folders will cause the first build to take long time because Solar2D will download a few Giga bytes of data so don’t worry just give it some time

Hope this helps

I do everything like you explain. finally I get that :

21:43:47.013
21:43:47.013 BUILD SUCCESSFUL
21:43:47.013 Total time: 1 second
21:43:47.013 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
21:43:47.031 DeviceBuildData: {“isLaunchPadActive”:false,“targetCertType”:“developer”,“targetPlatformVersion”:140300,“debugBuildProcess”:5,“targetDevice”:0,“dailyBuildRevision”:3656,“clientPlatform”:“Win”,“targetAppStore”:“amazon”,“targetPlatform”:3,“clientDeviceId”:“23b33a7c241428d140e2778003690781”,“plugins”:[],“dailyBuildYear”:2021,“clientProductId”:“basic”,“appName”:“Test”}
21:43:47.031 Build: running: cd /d “C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa12172” && cd template && setup.bat && gradlew.bat buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2021.3656 -PcoronaResourcesDir=“C:\Program Files (x86)\Corona Labs\Corona\Resources” -PcoronaDstDir=“C:\Users\Steeve\Documents\Corona Built Apps” -PcoronaTmpDir=“C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa12172” -PcoronaSrcDir=“C:\Users\Steeve\Documents\Corona Projects\Test” -PcoronaAppFileName=“Test” -PcoronaAppPackage=“com.isa.jeux.app.Test” -PcoronaVersionCode=1 -PcoronaVersionName=“1.0.0” -PcoronaKeystore=“C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore” -PcoronaKeystorePassword=“XXXXXX” -PcoronaKeyAlias=“androiddebugkey” -PcoronaTargetStore=“amazon” -PcoronaKeyAliasPassword=“XXXXXX” -PcoronaBuildData=“C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa12172\build.data” --console=plain
22:11:04.550 Downloading https://services.gradle.org/distributions/gradle-6.8.3-all.zip
22:11:04.550 …10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
22:11:04.550
22:11:04.550 Welcome to Gradle 6.8.3!
22:11:04.550
22:11:04.550 Here are the highlights of this release:
22:11:04.550 - Faster Kotlin DSL script compilation
22:11:04.550 - Vendor selection for Java toolchains
22:11:04.550 - Convenient execution of tasks in composite builds
22:11:04.550 - Consistent dependency resolution
22:11:04.550
22:11:04.550 For more details see https://docs.gradle.org/6.8.3/release-notes.html
22:11:04.550
22:11:04.550 To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
22:11:04.550 Daemon will be stopped at the end of the build
22:11:04.550
22:11:04.550 FAILURE: Build failed with an exception.
22:11:04.550
22:11:04.550 * What went wrong:
22:11:04.550 A problem occurred configuring root project ‘Corona Android’.
22:11:04.550 > Could not resolve all artifacts for configuration ‘:classpath’.
22:11:04.550 > Could not download kotlin-compiler-embeddable-1.3.70.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.70)
22:11:04.550 > Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.70/kotlin-compiler-embeddable-1.3.70.jar’.
22:11:04.550 > Premature end of Content-Length delimited message body (expected: 40,188,962; received: 16,253,952)
22:11:04.550 > Could not download builder-4.2.1.jar (com.android.tools.build:builder:4.2.1)
22:11:04.550 > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.2.1/builder-4.2.1.jar’.
22:11:04.550 > Premature end of Content-Length delimited message body (expected: 9,839,088; received: 6,553,552)
22:11:04.550
22:11:04.550 * Try:
22:11:04.550 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:11:04.550
22:11:04.550 * Get more help at https://help.gradle.org
22:11:04.550
22:11:04.550 BUILD FAILED in 27m 17s
22:11:04.550 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
22:11:04.830 Android build failed (1) after 1641 seconds

22:32:24.571 To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
22:32:24.571 Daemon will be stopped at the end of the build
22:32:24.571
22:32:24.571 > Configure project :App
22:32:24.571 WARNING:: The option setting ‘android.enableResourceOptimizations=false’ is deprecated.
22:32:24.571 The current default is ‘true’.
22:32:24.571 It will be removed in version 7.0 of the Android Gradle plugin.
22:32:24.571 Authorizing plugins
22:32:24.571 Error while fetching plugins:
22:32:24.571
22:32:24.571 FAILURE: Build failed with an exception.
22:32:24.571
22:32:24.571 * Where:
22:32:24.571 Build file ‘C:\Users\Steeve\AppData\Local\Temp\Corona Labs\CLtmpa22620\template\app\build.gradle.kts’ line: 554
22:32:24.571
22:32:24.571 * What went wrong:
22:32:24.571 Error while fetching plugins:
22:32:24.571
22:32:24.571 * Try:
22:32:24.571 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:32:24.571
22:32:24.571 * Get more help at https://help.gradle.org
22:32:24.571
22:32:24.571 BUILD FAILED in 6m 38s
22:32:24.571 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
22:32:24.846 Android build failed (1) after 402 seconds

Hey!

Regarding some of the advice you’ve received so far, there should be no need for you to reinstall Windows, or even mess around with Java development kits, etc.

If you are trying to build for Android using the Solar2D Simulator, then there’s no need to have Java separately installed as Solar2D has it bundled in.

As for the build process, it is mostly offline. It just has to use the Internet for a quick check for Gradle, if I’ve understood correctly, and then it compiles everything online.

Do you have 32 or 64 bit Windows?

I have the same problem, like you describe. I can see what happened !
the thing is Solar2D doesn’t accept latency connection more than 300ms. when internet connection is become unavailable for more than 335 ms it timed out the delay and refresh the download process. at the same time it delete all incomplete downloaded files in folders .Gradle and .Android you should never finished downloaded any file.
you can verify that in the solar2D forum website: " Draft is being edited in another window. Please reload this page " because connection is become unavailable for a few second.

Solar2D need to bundle reprise function (recovery) like download manager to allow user continue downloading incomplete file

Same problem with Solution
https://forums.solar2d.com/t/solar2d-build-error/354028/4

I need someone to post both folders .Gradle and .Android please !!!

I zipped them and uploaded them to google drive … above 500 MB

there you go…

https://drive.google.com/file/d/1JEDqKUwoUZr0Jvk-ye1AD7EhBOB7JRRp/view?usp=sharing

2 Likes

I just copy and paste your files
I really thank you for taking the time to send me the files.
Now I am able to build for Android.

Thank you
it works for me with 3 actions
I just copy and past mfc140u.dll into C:\Program Files (x86)\Corona Labs\Corona\Native\Corona\win\bin
and so .gradle and .Android

thank you Kakula for the files and you trimble for your idea to ask someone the files

I’m glad it worked with you guys … if you ask someone 20 years ago to zip and share 500 Mbs of data online it would sound impossible … now it is just a few seconds of effort and the results are great…

glad i was able to help … truly

1 Like

Now that the issue seems fairly clear, perhaps something could be done to address this? I think this is the most common type of build issue for Android (or in general) that we see on the forums these days.

@vlads

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.