반응형

ionic android build fail -- license argeement 관련


./android update sdk --no-ui --all --filter platform-tools,android-25,extra-android-m2repository


./sdkmanager --update



gradlew: Command failed



Execution failed for task ':mergeReleaseResources'.

> Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException


ionic cordova resources 으로 해결


compileDebugJavaWithJavac



cordova platform update android 으로 해결

ionic cordova build android --prod --release



반응형
Posted by Eklim_Shines
,
반응형

ionic config.xml 수정 시


cordova platform rm ios

cordova platform add ios


플랫폼을 삭제하고 다시 추가해야함

반응형
Posted by Eklim_Shines
,

ionic4 device live load

Android 2019. 3. 2. 00:01
반응형

ionic4


live load 하기 위한 명령어


ionic cordova emulate ios -l -c

반응형
Posted by Eklim_Shines
,
반응형



이 리뷰는 한빛미디어 IT 전문서 서평단 <나도 리뷰어>를 통해 '그레이들 레시피' 라는 책 리뷰입니다.


안드로이드 개발은 2010년에서부터 시작을 하였고 주로 이클립스를 통해서 개발을 하였습니다.


최근에 작년쯤까지만해도 이클립스를 통해서 개발하는데에는 무리가 없었으나 어떻게 하다보니 안드로이드 스튜디오에서만 프로젝트를 진행할 수 밖에 없었다.


그래서 안드로이드 스튜디오에서 라이브러리 관리 등을 위한 그레이들을 접했을 때 조금 어려움 감이 있었다.


이러한 사전 경험을 하고 나서 이 책을 접하였더니 그레이들에 대한 이해를 빠르게 할 수 있었고 앞으로 개발하는데 있어서 필요한 부분을 찾아 도움을 받을 수 있다.


이 책은 안드로이드에 대해 개발경험이 어느정도 있고 안드로이드 스튜디오를 통한 개발 경험이 적은 개발자가 접하기에 적당한 책인것 같다.


그레이들이 무엇인지 사용법은 어떤지 사실 접하기 힘들었다. 그레이들 레시피 책은 요리 책의 레시피 처럼 필요한 부분을 찾아 보기에 편하게 되어 있다.


먼저 책의 첫 부분에는 안드로이드 스튜디오를 통해서 전체적인 그레이들의 구조와 문법 등 사용법이 설명되어 있다.


안드로이드 스튜디오에서 그레이들을 사용하는 법과 콘솔에서 그레이들을 사용하는 법을 예제를 통해 잘 설명해주고 있다.


책의 구조는 문제, 해결방안, 논의(주로 자세한 설명이 되어 있다), 함께 보기로 되어 있다.


함께 보기는 해당 부분과 연관된 다른 레시피 부분을 참조할 수 있도록 되어 있다.


그레이들에 대해 처음 접하는 안드로이드 개발자나 좀 더 편하게 접근하고 싶은 개발자라면 읽어볼만한 책이다.

반응형
Posted by Eklim_Shines
,
반응형
반응형
Posted by Eklim_Shines
,
반응형

사진 및 내용은 원문에서 발췌하였습니다.


1. ButtonMenu 

Demo Screenshot 2

버튼기반 UI을 만드는 안드로이드 라이브러리, LinearLayout을 확장안드로이드 커스컴 뷰를 조합해서 Model View ViewModel 패턴을 사용해서 구현 


2. circular-progress-button

Progress에 button을 합쳐서 유용하게 쓸 수 잇을 꺼같음.


3. Android Number Progress

Preset color

progress bar에 숫자로 나와 있어서 조금 custom해서 쓸수 있을듯..


4. floatlabelededittext

Android Version

edittext의 hint가 text 넣으면 위로 올라가는 라이브러리... 괜찮다 ㅎㅎㅎ


Tab관련 라이브러리가 많았으면 좋았을듯 ㅠㅠ



반응형

'Android' 카테고리의 다른 글

그레이들 레시피 - Gradle Recipes for Android 리뷰  (0) 2017.02.13
안드로이드 Tab 관련 라이브러리  (0) 2016.02.02
framework 부분 컴파일  (0) 2014.06.09
factory image writing  (0) 2014.06.07
android framework 관련 링크들  (0) 2014.06.07
Posted by Eklim_Shines
,
반응형

http://taehyo.egloos.com/4033668


1. source build/envsetup.sh

2. lunch 후 빌드 타켓 선택

3. mmm frameworks/base

android.mk 파일이 있는 곳에서 컴파일을 시도해야된다.

내가 수정할 frameworks/base/core/java/android/content/BroadcastReceiver.java 파일있었는데 android.mk 파일은 frameworks/base 폴더에 있었다.

4. make snod

반응형
Posted by Eklim_Shines
,

factory image writing

Android 2014. 6. 7. 15:18
반응형

http://www.droid-life.com/2013/11/05/how-to-flash-nexus-5-factory-images/


https://developers.google.com/android/nexus/images#hammerhead


fastboot flash bootloader bootloader-hammerhead-HHZ11d.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-M8974A-1.0.25.0.17.img
fastboot reboot-bootloader
fastboot -w update image-hammerhead-krt16m.zip
fastboot reboot-bootloader

반응형
Posted by Eklim_Shines
,
반응형
반응형

'Android' 카테고리의 다른 글

framework 부분 컴파일  (0) 2014.06.09
factory image writing  (0) 2014.06.07
android source 다운 및 포팅  (0) 2014.06.04
Android 디컴파일, 디스어셈블  (0) 2013.07.27
hiro marker (히로 마커)  (0) 2010.10.27
Posted by Eklim_Shines
,
반응형

맥에서 hdiutil create -type SPARSE -fs "Case-sensitive Journaled HFS+" -size 60g -volname "Android" -attach ~/Android

위의 명령을 통해서 새로운 volume을 만들고


To install Repo:

  1. Make sure you have a bin/ directory in your home directory and that it is included in your path:

    $ mkdir ~/bin
    $ PATH=~/
    bin:$PATH
  2. Download the Repo tool and ensure that it is executable:

    $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    $ chmod a
    +x ~/bin/repo


  1. Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like:

    $ mkdir WORKING_DIRECTORY
    $ cd WORKING_DIRECTORY
  2. Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.

    $ repo init -u https://android.googlesource.com/platform/manifest

    To check out a branch other than "master", specify it with -b:

    $ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

에서 원하는 안드로이드 버전은 http://source.android.com/source/build-numbers.html 여기서 확인 가능하다.

4.3 버전이 필요해서 repo init을 다음과 같이 수정함

repo init -u https://android.googlesource.com/platform/manifest -b android-4.3.1_r1


$ repo sync


디바이스에 포팅하기 위해서는 안드로이드 소스뿐만 아니라 하드웨어적인 내용도 필요하다.

그래서 다음 링크에서 필요한 바이너를 다운 받은 후 .sh파일을 실행시키면 ./vendor 폴더가 만들어지게 된다.

https://developers.google.com/android/nexus/drivers


$ source build/envsetup.sh


$ lunch aosp_arm-eng

or

$ lunch

lunch 명령 후 원하는 타켓을 선택하면 된다.


$ make -j4


디바이스에 포팅 하기 위해서 


$ make fastboot adb


fastboot 명렁어가 되는지를 확인 후 디바이스를 fastboot모드로 부팅 시킨다.


Booting into fastboot mode

DeviceKeys
hammerheadPress and hold both Volume Up and Volume Down, then press and hold Power
floPress and hold Volume Down, then press and hold Power
debPress and hold Volume Down, then press and hold Power
mantaPress and hold both Volume Up and Volume Down, then press and hold Power
makoPress and hold Volume Down, then press and hold Power
grouperPress and hold Volume Down, then press and hold Power
tilapiaPress and hold Volume Down, then press and hold Power
phantasmPower the device, cover it with one hand after the LEDs light up and until they turn red
maguroPress and hold both Volume Up and Volume Down, then press and hold Power
toroPress and hold both Volume Up and Volume Down, then press and hold Power
toroplusPress and hold both Volume Up and Volume Down, then press and hold Power
pandaPress and hold Input, then press Power
wingrayPress and hold Volume Down, then press and hold Power
crespoPress and hold Volume Up, then press and hold Power
crespo4gPress and hold Volume Up, then press and hold Power


$ fastboot oem unlock

oem unlock을 시켜야함

Flashing a device


Set the device in fastboot mode if necessary (see above).

An entire Android system can be flashed in a single command: this writes the boot, recovery and system partitions together after verifying that the system being flashed is compatible with the installed bootloader and radio, and reboots the system. This also erases all the user data, similarly to fastboot oem unlock mentioned earlier.

$ fastboot -w flashall

Note that filesystems created via fastboot on Motorola Xoom aren't working optimally, and it is strongly recommended to re-create them through recovery

$ adb reboot recovery

Once in recovery, open the menu (press Power + Volume Up), wipe the cache partition, then wipe data.

Cleaning up when adding proprietary binaries

In order to make sure that the newly installed binaries are properly taken into account after being extracted, the existing output of any previous build needs to be deleted with

$ make clobber


참고

1. http://androidhuman.tistory.com/entry/Mac-OS-X-107-Lion-%EC%97%90%EC%84%9C-%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-%EB%B9%8C%EB%93%9C%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0

2. http://yjaeseok.tistory.com/296

3. http://source.android.com/source/building-devices.html


반응형

'Android' 카테고리의 다른 글

framework 부분 컴파일  (0) 2014.06.09
factory image writing  (0) 2014.06.07
android framework 관련 링크들  (0) 2014.06.07
Android 디컴파일, 디스어셈블  (0) 2013.07.27
hiro marker (히로 마커)  (0) 2010.10.27
Posted by Eklim_Shines
,