怎么把android项目压缩得比较小上传到csdn

我们在csdn中下载的demo都是比较小的压缩文件,这是怎么压缩的?
怎么把android studio项目压缩得比较小上传到csdn

在导出android stuio项目前可以先清理工程,只保留必要的部分。
比如build文件夹就可以删除,它的内容在项目编译时会重新创建。

介绍一个批处理文件协助完成清理,供你参考,该.bat文件应置于工程的根文件夹。

 @rem  ##########################################################################
@rem
@rem  Export an ANDROID STUDIO application 
@rem
@rem  ##########################################################################


echo off
CLS
echo _________________________________________
echo ANDROID-STUDIO files sources export
echo _________________________________________
echo 
echo If directory name includes space
echo - Surround name with quotes 
echo _________________________________________
set /p dirname= Dir name to export :
if %dirname% == "" goto ERROR
set str=%dirname%
mkdir c:\EXPORT\%str%
pause
xcopy %dirname% c:\EXPORT\%str% /s
del c:\EXPORT\%str%\*.iml
del c:\EXPORT\%str%\app\*.apk
rmdir c:\EXPORT\%str%\.gradle /s /q 
rmdir c:\EXPORT\%str%\.idea /s /q 
rmdir c:\EXPORT\%str%\build /s /q 
erase c:\EXPORT\%str%\app\build /f /s /q
rmdir c:\EXPORT\%str%\app\build /s /q 
pause
goto END
:ERROR
echo Cannot create, check the directory root
goto OUT
:END
CLS
echo _________________________________________
echo  ANDROID-STUDIO EXPORT
echo _________________________________________
echo Export ended, check c:\EXPORT
:OUT
pause