windows - Android-studio: Failed to crunch file? -> Change build.gradle to solve it -> Error while Installing APK -
i ran "not allowed have on 240 characters folder name" windows problem building android project.
i found solution in thread. among proposition i've chosen implement @lodlock's answer consisting in modifying gradle.build file follow:
allprojects { builddir = "c:/tmp/${rootproject.name}/${project.name}" repositories { ... } }
it work build. but afterward when android-studio try install file "android-debug.apk" not find @ expected location [project location] because build located "c:/tmp/${rootproject.name}/${project.name}". gives me following error:
11/10 18:32:23: launching android apk file [my android project folder]\build\outputs\apk\android-debug.apk not exist on disk. error while installing apk
i can workaround taking "android-debug.apk" file "c:/tmp/${rootproject.name}/${project.name}/outputs/apk" , copying @ expected location ("[my android project folder]\build\outputs\apk\").
but not efficient, hence i'd know how set pick installing apk location in gradle.build (or anywhere else)?
any ideas?
some update: restarting android-studio , rebooting computer (also not reboot relevant). made work. no change do, clicked "run" on android-studio , seems time picking apk correct location had been built ("c:/tmp/${rootproject.name}/${project.name}/outputs/apk"). also, use ionic2, , when try launch in cli ionic run android
, builds cannot run on device, get:
error: not find apk architecture: arm build-type: debug
with android-studio opened next it, can use run it.
Comments
Post a Comment