Android studio not generate signed apk

前端 未结 4 683
独厮守ぢ
独厮守ぢ 2021-01-11 13:01

recently I updated my working android studio IDE into Android Studio 1.5.1. but now I\'m facing some trouble as after updating it did not generating signed apk file. but whe

相关标签:
4条回答
  • 2021-01-11 13:07
    1. Ensure that your keystore is correct, with the correct passwords and paths.

    2. Then clean and rebuild.

    3. Assemble (NOT EXECUTE OR RUN) the required build

    4. Then 'Generate signed APK'

    0 讨论(0)
  • 2021-01-11 13:09

    I fixed this issue by completely removing Android studio and it's related files and re install it. and now its working perfectly. it may be some issue with the plugins I'm using with the IDE. So in my mac I used following terminal commands to remove android studio

    rm -Rf /Applications/Android\ Studio.app
    rm -Rf ~/Library/Preferences/AndroidStudio*
    rm ~/Library/Preferences/com.google.android.studio.plist
    rm -Rf ~/Library/Application\ Support/AndroidStudio*
    rm -Rf ~/Library/Logs/AndroidStudio*
    rm -Rf ~/Library/Caches/AndroidStudio*
    rm -Rf ~/.gradle
    rm -Rf ~/.android
    

    then I re install the IDE and install necessary SDKs. this fixed issue for me.

    0 讨论(0)
  • 2021-01-11 13:19

    I was facing same issue but i resolved the issue by adding below code in build.gradle

    lintOptions {
            checkReleaseBuilds false
        }
    

    This issue would occur, Sometimes our application not follow all the rules and regulation according to Lint Tool

    Note: Add this in application module inside android

    0 讨论(0)
  • 2021-01-11 13:25

    For Android Studio 3, instead of putting the APK directly into the folder, it creates a "release" folder or a folder that matches the flavor of your build.

    So when you click locate, it puts you at the app level. You need to go into the release folder to get your APK file.

    Typically you'd look in the release folder:

    But if you built some other flavor aside from the release flavor, you would look for a folder with that name.

    0 讨论(0)
提交回复
热议问题