![]() ![]() Just recently, I also encountered similar problem, and after I did this, it works: Does anyone know what am I doing wrong? Why do I still get the Gradle Wrapper error? 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |