android - PackageInfo versionName now says INSTANT_RUN -
it appears android studio 2.2 preview 4 substitutes "instant_run" versionname in packageinfo rather has been put in manifest. is there other way of seeing in versionname in manifest? code using is:
gstrversion = context.getpackagemanager().getpackageinfo(context.getpackagename(), 0).versionname;
to answer question,
no, there no other way version name manifest.
but try
as commented sir commansware
you should disable instant run,
file → settings → build, execution, deployment → instant run , uncheck enable instant run.
check this answer more details
Comments
Post a Comment