본문 바로가기

모바일전자정부프레임웍_안드로이드_설정_및_패키지명변경

mobile/android by 낼스 2021. 12. 22.

# Andorid 스튜디오 설정.

  1. gradle-wrapper.properties
    • distributionUrl=https://services.gradle.org/distributions/gradle-4.1-bin.zip
    • File - Settings ( Ctrl + Alt + S )
  2. Android Studio - File - Settings ( Ctrl + Alt + S )
    • Build, Execution, Deployment - Build Tools - Gradle
      • Gradle JDK - 리스트 누르면 하단에 - Add Jdk - download - corretto-1.8

# Android package 변경 ( net.softm )

  • package : kr.go.egovframework.hyb.deviceapiapp

  • cordova config

    • id : kr.go.egovframe.hyb --> net.softm
    • applicationId : kr.go.egovframework.hyb.deviceapiapp --> net.softm.hyb.deviceapiapp
    • config.xml id : net.softm --> net.softm
    1. config.xml 파일
      <widget id="net.softm" version="1.0.0"

    2. platforms > android > AndroidManifest.xml 파일
      <manifest android:hardwareAccelerated="true" ..... package="net.softm.hyb.deviceapiapp"

    3. platforms > android > src > com > cordova 디렉토리명을 app로 변경

    4. platforms > android > src > com > cordova > test 디렉토리명을 myapp로 변경

    5. platforms > android > src > com > app> myapp > MainActivity.java 파일

      • package net.softm.hyb.deviceapiapp;

댓글