Android的工作室继续上传旧版本的apk [英] Android studio keep upload old apk version
问题描述
我最近开始有运行于Android的工作室我的项目出了问题,APK上传到我的设备从Android工作室而非更新的。
I have recently starting to have a problem to run my project from android studio , the APK uploaded to my device from the android studio is not the updated one .
我在输出库已检查,它不会创造新的APK,但上传旧的。
i have checked in the output library and it does create new APK but upload the old one .
在很多事情我已经try'd唯一的工作就是做摇篮
同步,但我想运行我的项目每次我需要再次做到这一点,再次...这件事是推动我疯了!
after many things i have try'd the only thing works is to do Gradle
sync , but every time i want to run my project i need to do this again and again...this thing is driving me crazy !
这是我gradle这个如果相关:
this is my gradle if relevant :
dependencies {
classpath 'com.android.tools.build:gradle:1.+'
}
这是我跑的配置:
推荐答案
原因是在的build.gradle文件的方法GETDATE:
the reason is the method getDate in the build.gradle file :
的versionName2.3_+ GETDATE()
versionName "2.3_" + getDate()
一旦GETDATE()辗转问题解决了。
once getDate() was removed problem solved .
这篇关于Android的工作室继续上传旧版本的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!