Code Changes Not reflecting in android studio(MAC) -


first of new android studio(1.2.2) started on gradle scripts.

my code changes not reflecting on studio when running code on device after every change. if build > rebuild project works fine i/o error everytime looking old apt path

i/o error: /users..../app/build/outputs/apk/......apk (no such file or directory) 

i have rename new apk expected name make run overtime work.

this issue first of not want rebuild project again , again after every code change. on run recent code should complile on own

my build.gradle file has these lines apk include variant , version number

    android.applicationvariants.all { variant ->  { output ->     output.setoutputfile(new file(output.getoutputfile().parent, "${output.getbasename()}-${getversionname()}-${project.ext.appcommitsandhash}.apk")) } 

not sure issue is, , work-around. can install apk manually via terminal:

cd path/to/project_root/build/outputs/apk adb install -t  -r -d yourapp.apk 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -