Android Build Failed 2021.3639

Cannot build for android.

12:58:32.580  
12:58:32.580  Solar2D Simulator 2021.3639 (Feb 22 2021 19:34:16)
12:58:32.580  
12:58:32.580  
12:58:32.580  Copyright (C) 2009-2021  C o r o n a   L a b s   I n c .
12:58:32.580  	Version: 3.0.0
12:58:32.580  	Build: 2021.3639
12:58:32.580  Platform: GenericAndroidDevice / x64 / 10.0 / AMD Radeon HD 6670 / 4.5.13399 Compatibility Profile Context 15.201.1151.1008 / 2021.3639 / ru_RU | RU | ru_RU | ru
12:58:32.580  Loading project from:   D:\Projects\Corona Projects\preview
12:58:32.580  Project sandbox folder: C:\Users\yashu\AppData\Local\Corona Labs\Corona Simulator\Sandbox\preview-AA314AF3A4044D7C7CD9934DCD37D9A4\Documents
12:59:23.638  Testing credentials for 'C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore': 
12:59:25.382  jar signed.
12:59:25.382  
12:59:25.382  Warning: 
12:59:25.382  The signer's certificate is self-signed.
12:59:25.382  
12:59:25.382  The timestamp will expire on 2031-01-06.
12:59:25.382  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
13:02:35.293  Downloading https://services.gradle.org/distributions/gradle-6.5.1-all.zip
13:02:35.293  ...........................................................................................................................................
13:02:35.293  Unzipping C:\Users\yashu\.gradle\wrapper\dists\gradle-6.5.1-all\cdund22i8guosqylfo49op4dv\gradle-6.5.1-all.zip to C:\Users\yashu\.gradle\wrapper\dists\gradle-6.5.1-all\cdund22i8guosqylfo49op4dv
13:02:35.293  Warning: Dependant package with key emulator not found!
13:02:35.293  Checking the license for package Android SDK Platform 29 in C:\Users\yashu\AppData\Roaming\Corona Labs\Corona Simulator\Android Build\sdk\licenses
13:02:35.293  License for package Android SDK Platform 29 accepted.
13:02:35.293  Preparing "Install Android SDK Platform 29 (revision: 5)".
13:02:35.293  "Install Android SDK Platform 29 (revision: 5)" ready.
13:02:35.293  Installing Android SDK Platform 29 in C:\Users\yashu\AppData\Roaming\Corona Labs\Corona Simulator\Android Build\sdk\platforms\android-29
13:02:35.293  "Install Android SDK Platform 29 (revision: 5)" complete.
13:02:35.293  "Install Android SDK Platform 29 (revision: 5)" finished.
13:02:35.293  
13:02:35.293  FAILURE: Build failed with an exception.
13:02:35.293  
13:02:35.293  * What went wrong:
13:02:35.293  Could not determine the dependencies of task ':App:bundleReleaseResources'.
13:02:35.293  > Failed to install the following SDK components:
13:02:35.293        build-tools;28.0.3 Android SDK Build-Tools 28.0.3
13:02:35.293    Install the missing components using the SDK manager in Android Studio.
13:02:35.293  
13:02:35.293  
13:02:35.293  * Try:
13:02:35.293  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.
13:02:35.293  
13:02:35.293  * Get more help at https://help.gradle.org
13:02:35.293  
13:02:35.293  BUILD FAILED in 3m 7s
13:02:35.293  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
13:02:35.557  Android build failed (1) after 190 seconds

how do i fix this?

I tried installing 3638, 3637, 3635. Same problem. Maybe something has changed in the android SDK and it is not downloaded now?

I have same problem

Dave

I found a solution.

  1. Install Android Studio.
  2. Download build tools 28.0.3
  3. Copy directory “28.0.3” from Android Studio android sdk to solar2d android sdk. In my case it is:
    from (android studio copy)
    D:\Android\sdk\build-tools
    to (solar2d copy)
    C:\Users\yashu\AppData\Roaming\Corona Labs\Corona Simulator\Android Build\sdk\build-tools

After that, build ended successfully.