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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -