Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix

Tags:

android

I am writing this android app and all of a suddenly it now doesn't launch. Well, it does but then say:

[Your app] has closed unexpectedly

The strange thing is that it shows no error messages in logcat.The only messager that I saw is this:

WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a      security risk. Please fix.

So I did some searching and came across this:

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

but that was talking about the NDK, which I'm not using. So I have no idea what this error message means, nor what lbvc1dec_sa.ca7.so is. So how can I fix this? Where is the problem?

like image 290
Daniel Avatar asked Aug 16 '14 05:08

Daniel


1 Answers

This work for me: modify build.gradle script to a lower version due to the android studio you are working with

initial:

defaultConfig {
    applicationId "com.android.imageloadingdemo"
    minSdkVersion 21
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}

after:

defaultConfig {
    applicationId "com.android.imageloadingdemo"
    minSdkVersion 13
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
like image 167
Tobore Igbe Avatar answered Oct 18 '22 01:10

Tobore Igbe