java - Emma using Android: errors related to external framework (simple xml framework) -


i trying emma running android projec, followed steps given: http://dtmilano.blogspot.ca/2011/08/linuxcon-2011-north-america.html , https://wiki.jenkins-ci.org/display/jenkins/building+an+android+app+and+test+project -> set ant.

i running command ant clean emma debug install test in test project directory , getting following errors:

-compile:     [javac] compiling 112 source files c:\users\rl\workspace\fs\bin\classes     [javac] c:\users\rl\workspace\fs\src\fs\models\elements\elements.java:7: package org.simpleframework.xml not exist     [javac] import org.simpleframework.xml.elementlist;     [javac]                               ^     [javac] c:\users\rl\workspace\fs\src\fs\models\elements\elements.java:8: package org.simpleframework.xml not exist     [javac] import org.simpleframework.xml.root;     [javac]                               ^     [javac] c:\users\rl\workspace\fs\src\fs\models\elements\elements.java:15: package com.thoughtworks.xstream.annotations d oes not exist /... +97 similar errors .../ 

the original project under test uses simple framework , emma seesms have trouble them. therefore, added these jars java build path of testproject, did not make difference.

i converted project ant using commands:

android update project --path c:\users\rl\workspace\fs --name fs --target android-11 android update test-project --main ../fs --path c:\users\rl\workspace\fstest 

and generated build.xml looks this:

<?xml version="1.0" encoding="utf-8"?> <project name="fstest" default="help">     <property file="local.properties" />     <property file="ant.properties" />     <property environment="env" />     <condition property="sdk.dir" value="${env.android_home}">         <isset property="env.android_home" />     </condition>     <loadproperties srcfile="project.properties" />     <fail message="sdk.dir missing. make sure generate local.properties using 'android update project' or inject through android_home environment variable."           unless="sdk.dir" />     <import file="custom_rules.xml" optional="true" />     <import file="${sdk.dir}/tools/ant/build.xml" /> </project> 

if needed, can attach full java error trace (it contains 100 errors, similar above.

how can inject dependencies external framework?

i managed solve problem transferring external jar libraries /libs library , thereafter can build tests.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -