Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk release force close when open #47

Closed
rickicode opened this issue Apr 8, 2020 · 12 comments
Closed

apk release force close when open #47

rickicode opened this issue Apr 8, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@rickicode
Copy link

if in debug mode, the application can be run, but when in release mode the application cannot be opened

@rickicode
Copy link
Author

fix with this

release {
            signingConfig signingConfigs.release
            minifyEnabled false
            shrinkResources false
        }

@ctrysbita
Copy link
Member

That is because the latest android sdk use R8 compiler which is not fully supported by Strongswan.

@aldwnesx
Copy link

aldwnesx commented Apr 9, 2020

@ctrysbita @rickicode

Doesn't the libraries used not support non-arms?

@ctrysbita
Copy link
Member

@aldwnesx The native library support armeabi-v7a, arm64-v8a, x86, x86_64

@aldwnesx
Copy link

aldwnesx commented Apr 9, 2020

@aldwnesx The native library support armeabi-v7a, arm64-v8a, x86, x86_64

this was just added right? because a week back it crashes on non-arms

@ctrysbita
Copy link
Member

@aldwnesx They were supported since v0.6.0

@aldwnesx
Copy link

aldwnesx commented Apr 9, 2020

@aldwnesx They were supported since v0.6.0

when was it released? because i did that afew weeks ago and not supported.. i guess because of wrong filters..i am trying agian now much thanks

@aldwnesx
Copy link

aldwnesx commented Apr 9, 2020

Also doesn't flutter not support building for x86 _ 32? How should I build release?

I am following your latest code:

   ndk {
                if (!project.hasProperty('target-platform')) {
                    abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
                } else {
                    def platforms = project.property('target-platform').split(',')
                    def platformMap = [
                            'android-arm'  : 'armeabi-v7a',
                            'android-arm64': 'arm64-v8a',
                            'android-x86'  : 'x86',
                            'android-x64'  : 'x86_64',
                    ]
                    abiFilters = platforms.stream().map({ e ->
                        platformMap.containsKey(e) ? platformMap[e] : e
                    }).toArray()
                }
            }


should i use flutter build appbundle or flutter build apk --release ?

@ctrysbita
Copy link
Member

@aldwnesx Flutter only support arm, arm64, x86, x86_64. You can use the way you want to build release.

@monovm

This comment was marked as spam.

@monovm

This comment was marked as spam.

@ctrysbita
Copy link
Member

Fixed in v0.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants