问题
I have updated my Android Studio from 2.3.2 to 2.3.3.
Now, when I try to install APK generated in \app\build\outputs\apk, the App gets installed but it just flicks and exists.
It used to work fine before but it's not working since yesterday, and I have tried 2-3 different projects also but no use.
回答1:
Your manual way of generating APK is not generating the correct APK, so i am Suggesting these way to generating APK for Manual Install:
For Debug Build
- Delete you build folder inside the App folder.
- Goto
Build>Build APk
. it will generate .apk file in yourapp>build>output>apk
directory. - COPY it your device and install manually.
For Release Build
- Delete you build folder inside the App folder.
- Goto
Build>Generate Signed APk
and provide recomended Details, make sure yourBuild type : release
and have checked both signature versionv1(jar signature)
andv2(full apk signature)
. it will generate .apk file in yourapp>build>output>apk
directory. - COPY it your device and install manually.
来源:https://stackoverflow.com/questions/44591639/apk-not-working-made-from-android-studio-v-2-3-3