android - Gradle flavours - apps cache -


in application use gradle flavors:

apply plugin: 'com.android.application'  android {     compilesdkversion 19     buildtoolsversion '20.0.0'     defaultconfig {         applicationid "com.my.application"         minsdkversion 16         targetsdkversion 19         versioncode 11         versionname "1.4.1"     }     signingconfigs {         releaseconfig {             storefile file("c:\\!dev\\keystore\\xxxxx")             storepassword = "xxxxx"             keyalias = "xxxxx"             keypassword = "xxxxx"         }     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'             signingconfig signingconfigs.releaseconfig              // adds version file name             applicationvariants.all { variant ->                 variant.outputs.each { output ->                     def outputfile = output.outputfile                     if (outputfile != null && outputfile.name.endswith('.apk')) {                         def filename = outputfile.name.replace('.apk', "-${versionname}.apk")                         output.outputfile = new file(outputfile.parent, filename)                     }                 }             }             //--------------------------------------------------------------------------------         }     }      productflavors {         myapplocal {             applicationid "com.my.application.local"             versionname "1.4.1.1"             versioncode 13         }          myapplocal202{             applicationid "com.my.application.local202"             versionname "1.4.1.1"             versioncode 13         }          myapptest {             applicationid "com.my.application.test"         }          myapptest2 {             applicationid "com.my.application.test2"         }          myappproduction {             applicationid "com.my.application"         }     }  }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])      compile 'com.android.support:support-v4:19.+'     compile 'com.android.support:appcompat-v7:19.+'     compile 'com.mcxiaoke.volley:library:1.0.6'     compile 'com.google.code.gson:gson:2.2.+'     compile 'org.jsoup:jsoup:1.8.1'     compile 'net.sf.opencsv:opencsv:2.3' } 

all flavor versions installed on same device.
times app crashes after pressing launcher icon without exceptions.
"interesting" log was:

activitymanager﹕ activity pause timeout activityrecord 

the problem solved after manually clearing application cache (apps-> click on app -> clear data)
.

does different flavors uses same chache/ sharedpreferences ?
how solve problem?

does different flavors uses same cache/ sharedpreferences ?

no if flavors have different applicationid. sharedpreferences xml file. , android store file in internal storage following path: /data/data/${applicationid}. sharedpreferences shouldn't reason of issue.

how solve problem?

could update question more stack trace.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -