![]() I edited the file in /etc/profile sudo nano /etc/profileĮxport JAVA_HOME=/home/abdul/java/jdk1.8.0_131Įxport ANDROID_HOME=/home/abdul/Android/SdkĮxport PATH=$PATH:$ANDROID_HOME/platform-toolsĮxport GRADLE_ANDROID_HOME=/home/abdul/android-studio/gradleĮxport PATH=$PATH:$GRADLE_ANDROID_HOME/gradle-3.2/binĮxport PATH=$PATH:$GRADLE_ANDROID_HOME/m2repository Just recently, I also encountered similar problem, and after I did this, it works: Sadly Android SDK tools 25.3.1 broke cordova-android 6.1.xįor those who don't want to downgrade the SDK tools, you can install cordova-android from github url as most of the problems are already fixed on master branch. You have to specify the version because current CLI installs 6.1.x by default. Or you can remove the existing platform and add the new one (will delete any manual change you did inside yourProject/platforms/android/ folder) ![]() You can update your current incompatible android platform with There has been another Android SDK tools release (26.0.x) that is not fully compatible with cordova-android 6.2.1.Ĭordova Android 6.2.1 has been released and it's now compatible with latest Android SDK. ![]() Use this version:Ĭordova platform update Does anyone know what am I doing wrong? Why do I still get the Gradle Wrapper error?Ĭordova Android 6.2.2 has been released and it's fully compatible with SDK tools 26.0.x and 25.3.1. So, it looks like the environment variables are like they should be according to the various similar questions and in tutorials i've searched. Now, for the sake of testing the environment variables, I run the following commands: source /etc/environmentĪnd all the path variables are correctly displayed. GRADLE_HOME=/opt/android-studio/gradle/gradle-3.2 So now it looks like this: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/game:/home//Android/Sdk:/home//Android/Sdk/tools:/home//Android/Sdk/platform-tools" All Android versions from 2.1 (Eclair) to 7.1.1 (Nougat)Īfter extensive research, I put all the Android Studio-related environment variables in the file /etc/environment.My Android Studio is 2.3, the latest version for now.I don't have this templates/gradle/wrapper directory.Looked here: /home/user/Android/Sdk/tools/templates/gradle/wrapper So I run the command: cordova build -release androidĪnd I'm shown the following error: Error: Could not find gradle wrapper within Android SDK. I coded an Ionic project in Ubuntu 16.04 LTS, and now I have to build it for release. Besides, I'll provide details for my specific case. I know there are lots of questions similiar to this one, but i couldn't find a solution for my problem in any of those. Might need to update your Android SDK - Android ![]() Error: Could not find gradle wrapper within Android SDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |