Gradle의 productFlavors를 이용해 컴파일을 하던 중INSTALL_FAILED_CONFLICTING_PROVIDER 오류가 확인되었다. 구글링을 통해 찾아 본 결과로는 AndroidManifest.xml의 android:authorities가 중복되어 수정해야 한다는것 같다. You can solve it by changing the value of android:authorities in your AndroidManifest.xml file. The reason for the error is that another application installed on your device already uses that same value for android:authorities.출처 : htt..
Display display; display = ((WindowManager) context.getSystemService(context.WINDOW_SERVICE)).getDefaultDisplay(); DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics); // cell size of a widget in portrait mode int xCellSize = 80; int yCellSize = 100; if (metrics.widthPixels > metrics.heightPixels) { // this means we're in landscape mode, so the cell sizes are adjusted xCel..
Problem: Failed to complete Gradle execution Cause: A fatal exception has occurred. Program will exit Solution Go to File -> Settings -> Gradle Input the following in the "Gradle VM options:" box: -XX:MaxHeapSize=256m -Xmx256m Hit apply and Android Studio should build your project successfully.
버전 명 String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName; 버전 코드 int versionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;