You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/05 07:11:04 UTC

[GitHub] [cordova] chapuawe2 opened a new issue #296: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

chapuawe2 opened a new issue #296:
URL: https://github.com/apache/cordova/issues/296


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   I ran `cordova build android` on my Windows with Android Studio SDK
   
   ### What does actually happen?
   
   and got this error:
   `Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.`
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   Newly installed Android Studio with SDK 31.0.0
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   `cordova build android` on a new app builded with cordova
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Windows
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova CLI
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ x ] I searched for existing GitHub issues
   - [ x ] I updated all Cordova tooling to most recent version
   - [ x ] I included all the necessary information above
   
   ## Solution
   
   By https://stackoverflow.com/a/68430992
   
   
   
   First of all, I face this issue in Android Studio 4.2.2 and you not need to downgrade the SDK build tool 31 to 30 or not to change compile SDK version.
   
   The main problem is the two files missing in SDK build tool 31 that are
   
       dx.bat
       dx.jar
   
   The solution is that these files are named d8 in the file location so changing their name to dx will solve the error.
   
   The steps are below.
   
       go to the location
   
        "C:\Users\user\AppData\Local\Android\Sdk\build-tools\31.0.0"
   
       find a file named d8.bat. This is a Windows batch file.
   
       rename d8.bat to dx.bat.
   
       after changing d8.jar to dx.jar // now rename d8.jar to dx.jar
   
       It will be in location:
   
        "C:\Users\user\AppData\Local\Android\Sdk\build-tools\31.0.0\lib"
   
       Remember AppData is a hidden folder. Turn on hidden items to see the AppData folder.
   
   Now run your project...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] breautek commented on issue #296: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #296:
URL: https://github.com/apache/cordova/issues/296#issuecomment-893436183


   Cordova doesn't support build tools 31, and cannot do so without implementing breaking changes.
   
   It requires AGP 7 and Java 11 for it to work properly. 
   
   I also would advise against changing build tools, dx is intentionally missing because Google is replacing it with a different tool.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] breautek closed issue #296: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Posted by GitBox <gi...@apache.org>.
breautek closed issue #296:
URL: https://github.com/apache/cordova/issues/296


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] breautek edited a comment on issue #296: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #296:
URL: https://github.com/apache/cordova/issues/296#issuecomment-893436183


   Cordova doesn't support build tools 31, and cannot do so without implementing breaking changes.
   
   It requires AGP 7 and Java 11 for it to work properly. 
   
   I also would advise against changing build tools, dx is intentionally missing because Google is replacing it with a different tool.
   
   Closing because this is already being tracked: https://github.com/apache/cordova-android/issues/1309


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] breautek edited a comment on issue #296: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #296:
URL: https://github.com/apache/cordova/issues/296#issuecomment-893436183


   Cordova doesn't support build tools 31, and cannot do so without implementing breaking changes.
   
   It requires AGP 7 and Java 11 for it to work properly. 
   
   I also would advise against changing build tools, dx is intentionally missing because Google is replacing it with a different tool.
   
   Closing because this is already being tracked: https://github.com/apache/cordova-android/issues/1309
   
   For cordova-android@10, I'd recommend sticking with build tools 30.0.3.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org