Skip to main content

ubuntu 18.04 设置Android Studio快捷方式

 sudo vi /usr/share/applications/Android-Studio.desktop


[Desktop Entry]
Encoding=UTF-8
Name=Android Studio
Comment=Android Studio
Exec=/home/color/DevelopmentTools/android-studio/bin/studio.sh
Icon=/home/color/DevelopmentTools/android-studio/bin/studio.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;




Popular posts from this blog

MediaStore.Images.保存图片时生成两张图片的问题 并且在oppo手机上时间是1970-01-01 08:00:00

MediaStore.Images.保存图片时生成两张图片的问题 并且在oppo手机上时间是1970-01-01 08:00:00 正确方式如下 使用方式一 private void saveImage( String originFilePath) { File appDir = new File ( Environment . getExternalStorageDirectory() . getPath() + " /leikebaijing/images " ); if ( ! appDir . exists()) appDir . mkdirs(); String fileName; long dateTaken = System . currentTimeMillis(); if (originFilePath . contains( " / " )) { fileName = originFilePath . substring(originFilePath . lastIndexOf( " / " ) + 1 ); } else { fileName = dateTaken + " jpg " ; } File file = new File (appDir, fileName); if ( ! file . exists()) { try { file . createNewFile(); } catch ( IOException e) { e . printStackTrace(); }

Android 自动打渠道包工具(walle+自动化)

AutomaticPackagingTool Android 自动打渠道包工具,使用 python 3.7  使用之前必须安装并配置相关环境(Java、Android、Python) 自动化打包操作流程 1.  在 Android 项目的根目录 build.gradle 文件中添加 Walle Gradle 插件的依赖, 如下: buildscript { dependencies { classpath ' com.meituan.android.walle:plugin:1.1.6 ' } } 当前 app 的 build.gradle 文件中 apply 这个插件,并添加上用于读取渠道号的AAR apply plugin : ' walle ' dependencies { implementation ' com.meituan.android.walle:library:1.1.6 ' } 通过以下代码获取渠道信息 String channel = WalleChannelReader . getChannel( this . getApplicationContext()); 2.  打一个签名的apk 3.  将项目中的 jks 文件、channel 文件(如果没有请新建一个)、打包好的 apk 文件拷贝到 apk 目录里面 4.  在 python 中配置信息 # android_build_tools 路径 android_build_tools_path = ' D:/DevelopmentTools/Android/SDK/build-tools/28.0.0/ ' # 生成的文件名 target_file_name = ' AP ' # jks keystore_password keystore_password = " 123456 " # jks 别名 key_alias = " AutomaticPackaging " # jks key_password key