step 1:- download below libs https://drive.google.com/open?id=0B1dF4YSBqUooMWFZYUpUQ2MtRTQ https://drive.google.com/open?id=0B1dF4YSBqUooc3I3bDYwZnllbDg https://drive.google.com/open?id=0B1dF4YSBqUooZ3ZmUzVaREhCUVk Step 2:- compile 'com.google.code.gson:gson:2.2.4' Step 3:- packagingOptions { exclude 'META-INF/DEPENDENCIES.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/notice.txt' exclude 'META-INF/license.txt' exclude 'META-INF/dependencies.txt' exclude 'META-INF/LGPL2.1' } Step 4:- class MyAsync extends AsyncTask<String, Void, String> { @Override protected void onPreExecute() { ConstantData.displayProgress(BaseActivity.this); } @Override
Comments
Post a Comment