Category: Android

안드로이드 개발 관련 카테고리입니다.

Android

[빌드오류가 발생할때]The specified Gradle distribution ‘https://services.gradle.org/distributions/gradle-4.10.1-all.zip’ does not appear to contain a Gradle distribution.

패브릭을 제거하고 파이어베이스 오류보고 라이브러리로 업데이트 하는 과정에서 오류가 발생하였다.  여러개의 프로젝트를 패브릭 제거후 업데이트하였지만 이번 케이스는 처음발생되었다. 뭐가 꼬였나보지 하는 생각에, 프로젝트 클린을 해보기도...
Android

[안드로이드] NavigationView에서 headerLayout 접근하는 방법

NavigationView에서 headerLayout 설정방법 app:headerLayout 속성을 사용하여 접근가능하다. nav_header_main.xml 파일 내용 < ?xml version="1.0" encoding="utf-8"?> < LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="82dp" android:background="@drawable/side_nav_bar" android:gravity="bottom" android:orientation="vertical" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin"...
Android

Exit with code 1 due to network error: RemoteHostClosedError

Rotativa PDF 생성 기능을 사용하던 중에 발생된 오류이다. System.Exception:Error:Failed loading pagehttps://test.com/Survey/ReportPrint?enckey=b975eb3fb2b42d7c86d0fa1b6c3a1a9f&date=2019-05-28 sometimes it will work just to ignore this error with –load-error-handling ignore) Exit with code 1 due to network error: RemoteHostClosedError 위치 :Rotitiva.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) ………………. [백엔드 코드]string CustomOpton = string.Empty; string fileName = string.Empty; string fileName2 = string.Empty; Rotativa.UrlAsPdf actionPDF; byte[] PDFData = null;    CustomOpton = “–print-media-type  –javascript-delay 5000”; fileName =  “보고서_” + DateTime.Now.Date.ToString(“yyyy-MM-dd”) + “_” +  “.pdf”; //사용자페이지를 호출actionPDF = new Rotativa.UrlAsPdf(Config.GetValue(“RealURL”) + “/Survey/ReportPrint?enckey=” + userInfoData.EncHraPK + “&date=” + userInfoData.HraDate) {    ...
Android

[해결방법 : 앱이 설치되지 않았습니다] Caused by: android.os.RemoteException: Remote stack trace:at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1032)

안드로이드 스튜디오에서 앱의 불편함을 개선 후 테스트 폰을 USB로 연결 후 앱을 테스트하기 위해 빌드 후 앱을 실행하였다. 보통의 경우 앱이 설치되면서 앱이 실행되었지만, 어찌된 영문인지...
Android

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:386) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:247) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:159) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55) at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:60) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)...
error: Content is protected !!