· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Android Mirroring/Change List

AndroidMirroring/ChangeList


  • DroidAtScreenApplication.java
    • initAndroid() 의 deviceManager.initManager(); 를 private void postStart()로 이동
      • getDeviceManager().initManager();
      • ADB 를 찾았을때 init 을 수행
    • log4j 를 log4j2 로 upgrade
      • src/main/resources 디렉토리에 log4j.xml 만듬.

31c31,32
< import org.apache.log4j.Logger;
---
> import org.apache.logging.log4j.LogManager;
> import org.apache.logging.log4j.Logger;
49c50
< 	private final Logger log = Logger.getLogger(DroidAtScreenApplication.class);
---
> 	private final Logger log = LogManager.getLogger(DroidAtScreenApplication.class);
97c98
< 		deviceManager.initManager();
---
> 		// deviceManager.initManager();
126a128
> 			getDeviceManager().initManager();

  • log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
  <Appenders>
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
    </Console>
  </Appenders>
  <Loggers>
    <Root level="info">
      <AppenderRef ref="Console"/>
    </Root>
  </Loggers>
</Configuration>

  • maven 에서 gradle 로 변경 2.1.0
    • android 의 결정? 2011, 2012 년 사이
    • maven repositories 에 관련 jar 배포의 문제

  • gradle install
    • sudo apt-get update
    • sudo apt-get install gradle

  • build.gradle
    • 현재는 mavenCentral 사용
    • jcenter 로 시행해 보아야 함. 2016.10.8

  • error
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/android/ddmlib/AndroidDebugBridge$IDeviceChangeListener
  • build.gradle
jar {
  manifest {
        attributes 'Main-Class':'com.ribomation.droidAtScreen.DroidAtScreenApplication'
  }
  from {
        configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  }
}

  • dependencies
dependencies {
    compile group: 'org.hibernate', name: 'hibernate-core', version: '3.6.7.Final'
}
  • shortcut form
dependencies {
    compile 'org.hibernate:hibernate-core:3.6.7.Final'
}

  • gradle build
  • gradle assemble

:compileJava/home/tcheun/DroidAtScreen1-master/src/main/java/com/ribomation/droidAtScreen/dev/AndroidDevice.java:124: warning: [deprecation] getProperties() in IDevice has been deprecated
		return target.getProperties();
		             ^
1 warning



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2016-10-08 17:49:43
Processing time 0.0078 sec