728x90
반응형

- 여러 줄 주석 : Ctrl + / (윈도우),  Command + / (맥북)

728x90
반응형
728x90
반응형

#에러메시지
오류: 기본 클래스 com.android.sdklib.tool.sdkmanager.SdkManagerCli을(를) 로드하는 중 LinkageError가 발생했습니다. java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 Android sdkmanager tool was found, but failed to run (/Users/s/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager): "exited code 1". Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

 

위에 에러 잡는데 1시간 걸렸다.

 

대충 원인은 SDK Command-line Tools lastest 관련인 것 같다.

아래 그림처러 8.0 버전 클릭 > Apply 눌러서 설치해주고

 

 

아래 그림처럼 lastest 디렉터리 삭제

8.0 디렉터리를 lastest 디렉터리로 이름 변경 해주면

flutter doctor --android-licenses 명령어가 정상 동작 한다.

 

 

728x90
반응형
728x90
반응형

여기저기 블로그 글 찾아보고 따라하는데, 완전 삭제가 안되서 정리함

맥북 터미널에 아래 명령어 다 때려박으면 삭제됨

(블로그 우클릭 막아놔서, OCR 활용하시면됨)

 

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.AndroidStudio*
rm -Rf ~/AndroidStudioProjects
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*
rm -Rf ~/.emulator_console_auth_token

  •  

 

728x90
반응형
728x90
반응형

flutter doctor 시 android 에러 메시지가 출력됨

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See 
https://flutter.dev/docs/get-started/install/macos#android-setup
 for more details.

 

 

 

이를 해결하기 위해 

flutter doctor --android-licenses 명령어 입력했으나

아래의 에러가 발생

오류: 기본 클래스 com.android.sdklib.tool.sdkmanager.SdkManagerCli을(를) 로드하는 중 LinkageError가 발생했습니다.
java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 Android sdkmanager tool was found,

but failed to run (/Users/s/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager): "exited code 1". Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

 

열심히 구글링 한 결과, 안드로이드 스튜디오가 제대로 설치 안됬다고함.

 

재설치 진행

728x90
반응형
728x90
반응형

 

flutter docter xcode 관련 에러 메시지 종류

에러1) Xcode - develop for iOS and macOS    ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.      Download at: https://developer.apple.com/xcode/      Or install Xcode via the App Store.      Once installed, run:        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer        sudo xcodebuild -runFirstLaunch

에러 2) Xcode - develop for iOS and macOS (Xcode 15.1)    ✗ Unable to get list of installed Simulator runtimes.

 

 

위 에러 확인 시, 아래 명령어 수행

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

 


아래 에러 확인 시, Xcode 실행, 아무 프로젝트나 생성한 다음

아래 그림처럼 Simulator 설치

우하단 get 클릭

 

설치하고 다시 flutter doctor 해보면

 

Xcode 부분이 해결된 것을 볼 수 있다.

728x90
반응형
728x90
반응형

 

강의 보는데 이전 버전의 안드로이드 스튜디오를 사용하더라.

구글링을 해봄

 

https://developer.android.com/studio/archive?hl=ko

 

Android 스튜디오 다운로드 자료실  |  Android 개발자  |  Android Developers

이 페이지에는 Android 스튜디오 출시 관련 다운로드 자료실이 포함되어 있습니다.

developer.android.com

 

위 홈페이지를 들어가서, 아래의 약관에 동의합니다 누르면

 

아래와 같이 다운로드 가능한 버전들이 나온다

728x90
반응형
728x90
반응형

피들러랑 버프를 연동할때는
피들러의 manual proxy configuration 기능을 쓰면된다.

반면 버프에서 > 다른 서비스로 데이터를 넘기려면? Upstream proxy severs 기능을 쓰면된다.

 

아래처럼 설정해주면 burpsuite의 8081 포트를 통해 패킷이 캡처되고, mitmproxy로 넘어가서 로깅되는 것을 볼 수 있다.

 

 

-끝-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

728x90
반응형
728x90
반응형

내부 사이트 점검 시, 피들러는 쉽게 잡는데
버프는 오메가스위치를 써서 그런지 안잡히더라

기존(안잡힘)


변경 (잡힘)

요약 : Bypass List에 <-loopback> 써주자

 

 

-끝-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

728x90
반응형
728x90
반응형

파이썬 코드를 버프 익스텐더 적용해보자.
하.. 사실 다른피씨 쓸때마다 jython.jar 파일 다운받기 귀찮아서 걍 여기 쓴다.

ㄱㄱㄱ


Jython 2.7.2는 에러가 발생할 수 있다는 글을 몇개봤다.

고로 2.7.0 standalone 버전을 다운받아 버프에 셋팅해주자

아래는 Jython Jar 파일 다운로드 경로이다.

https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.0/

 

Central Repository: org/python/jython-standalone/2.7.0

 

repo1.maven.org

위 그림처럼 설정해주고
위와 같이 코드 파일 적용

utter는 Google에서 개발한 크로스 플랫폼 앱 개발 프레임워크이다. 현재는 주로 모바일 환경에서 사용되고 있고 웹과 데스크탑 앱도 개발할 수 있게 현재 개발이 진행되고 있다.

 

 

 

 

-끝-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

728x90
반응형
728x90
반응형

이유1 : 윈도우 VM을 통해 안드로이드 패킷을 봐야됨
이유2 : 맥북을 와이파이에 붙이고, VM도 브릿지로 와이파이 붙여서 쓰니, 특정 환경에서 VM의 인터넷이 느려짐.
그래서 VM을 NAT 네트워크에 두고, 포트포워딩으로 설정해야겠다 생각함 

방법

1. 안드로이드와 맥북 같은 네트워크 설정(ex/ 같은 wifi)
2. 안드로이드 와이파이 연결 시, 프록시 설정
=> 맥북 아이피:포트 (ex/ 192.168.15.22:8887)

3. 맥북에 포트포워딩 설정(아래 명령어 입력/  편집, 나트 N/W 재부팅)


  1. sudo vim /Library/Preferences/VMware Fusion/vmnet8 
  2. sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
  3. sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start

4. 피들러에서 옵션>Connections에서 
  1. Allow remote computers to connect 체크
  2. listens on port : 8887 설정

여기까지 했는데 안되면, 1. 윈도우 방화벽 끄기, 2. 피들러 재부팅(종종 재부팅해야 동작하더라) 

 

-끝-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

728x90
반응형

+ Recent posts