groovy allprojects { repositories { maven { url 'https://jitpack.io' } } } groovy dependencies { implementation 'com.github.your_username:UtilCode:latest_version' } public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Utils.init(this); } } <application android:name=".MyApplication" ... </application> int screenWidth = ScreenUtils.getScreenWidth(); int screenHeight = ScreenUtils.getScreenHeight(); boolean isConnected = NetworkUtils.isConnected(); boolean isEmpty = StringUtils.isEmpty("text"); LogUtils.d("This is a debug log");


上一篇:
下一篇:
切换中文