I came across the fact that "it is not allowed to have more than 240 characters of the folder name." Problem with windows creating my android project.
I found a solution in this thread. Among all the suggestions that I have chosen to implement the @lodlock answer, is to modify the gradle.build file as follows:
allprojects { buildDir = "C:/tmp/${rootProject.name}/${project.name}" repositories { ... } }
It works for assembly . But after , when Android-Studio tries to install the โandroid-debug.apkโ file, it does not find it in the expected location [project location], because the assembly is located โC: / TMP / $ {rootProject.name} / $ {project .name} ". This gives me the following error:
11/10 18:32:23: Starting android. APK file [my android project folder] \ build \ output \ apk \ android-debug.apk does not exist on the disk. Error installing APK
I can get around this by taking the file "android-debug.apk" from "C: / tmp / $ {rootProject.name} / $ {project.name} / output / apk" and copying it with the expected location ("[my project Android folder] \ build \ outputs \ APK \ ").
But this is not effective, so I would like to know how to install, where to choose where to install the APK in gradle.build (or somewhere else)?
Any ideas?
Some update: Rebooting Android-studio and rebooting the computer (also I'm not sure if the reboot is relevant). Did the job. To make no changes , I just clicked โRunโ on Android-studio, and it seems that this time he chose apk from the right place where it was built ("C: / tmp / $ {rootProject.name} / $ {project .name} / exits / APK "). In addition, I use ionic2, and when I try to run it in the CLI with ionic run android , it builds, but it cannot run it on the device, I get:
Error: could not find apk architecture: arm build-type: debug
When Android Studio opened next to it, I can use it to launch it.
android windows android-studio ionic2
nyluje Nov 10 '16 at 17:45 2016-11-10 17:45
source share