목록Development Language (157)
SPRING :: NOTE
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration! Emulator: Process finished with exit code 1윈도우를 재설치 한 후 안드로이드 AVD를 실행하였는데, 실행이 안되며 위와 같이 오류를 뿜을 때[제어판]->[프로그램 및 기능]->[Windows 기능 켜기/끄기]->[Windows 하이퍼바이저 플랫폼]체크 후 설치 재부팅
이 가이드는 같은 네트워크(AP)에 PC와 Android device가 연결 되어있는 상태에서 작동함. 1. USB를 연결한 상태로 (안드로이드 스튜디오 에뮬레이터도 종료) consol 모드 진입.2. adb는 환경변수로 등록되어있다는 가정하에 진행(검색해보면 나옴) => 링크3. 콘솔에 [adb devices] 입력 후 엔터를 치면 현재 PC에 연결되있는 Android 기기가 뜸이때 꼭 한개의 device가 있어야 함.4. USB 연결상태로 [adb tcpip 2050] 커멘드를 주고 엔터2050은 android device에서 원격제어 시, 제어 할 포트 번호5. 콘솔에 restarting in TCP mode port:2050 이라는 메시지가 뜨면 세팅 완료.6. android device와 USB..
안드로이드 레이아웃을 투명화 하는 작업 중 나타난 오류때문에 몇시간을 낭비했다.인터넷에 널리고 널린 소스는 Manifast.xml에 Style에서 추가 한 사용자 테마를 넣는건데죈종일 아래와 같은 오류만 뿜어댔다. You need to use a Theme.AppCompat theme (or descendant) with this activity결론적으로는... AppCompatActivity 써서 나는 오류였다.Style.xml에서 Theme 새로 생성할 때 Parent에 AppComat을 받아 만들면 에러가 안난다...
OnCreate 안에 Setcontent가 끝나는 시점에 넣어준다.DisplayMetrics dm = getApplicationContext().getResources().getDisplayMetrics(); int width = (int) (dm.widthPixels * 0.7); //Display 사이즈의 70% //int height = (int) (dm.heightPixels * 0.9); //Display 사이즈의 90% getWindow().getAttributes().width = width; getWindow().getAttributes().gravity = Gravity.RIGHT; getWindow().setBackgroundDrawable(new ColorDrawable(Color.G..
Error running 'app': Unable to open debugger port (localhost:8700): java.io.IOException "handshake failed - connection prematurally closed" 그냥 안드로이드 스튜디오 리붓하자.
var degrees2meters = function(lon,lat) { var x = lon * 20037508.34 / 180; var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180); y = y * 20037508.34 / 180; return [x, y] } x= -77.035974 y = 38.898717 console.log(degrees2meters(x,y)) // should result in: -8575605.398444, 4707174.018280
아래와 같이 에러가 났을 때,ERROR: Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory. 그냥 프로젝트 경로에 안드로이드 스튜디오가 지원하지 않는 한글이 있어서 ..
안드로이드 스튜디오를 업데이트 했는데 다음과 같은에러가 발생하고 빌드가 안됨. The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. The following dependencies do not satisfy the required version: root project 'GCS' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 코틀린 버전이 안맞아서 그렇다고 함. 안드로이드 프로젝트 리스트에서build.gradle(Projectg : xxx)로 이동 buildscript에서 다음을 변경 buildscript { ext.kotlin_version = '1.2.7..