On ANT recorder cmd , i am getting this error where it states the signed apk is not available..

232 views
Skip to first unread message

Padmapriya Narasimhan

unread,
Apr 10, 2013, 2:51:34 AM4/10/13
to bot-bo...@googlegroups.com
attached the build failure details
--------------------------------------------
 
 
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd\

C:\>cd bb

C:\BB>ant recorder
Buildfile: C:\BB\build.xml
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontri
b.properties. It could not be found.
  [taskdef] Could not load definitions from resource testngtasks. It could not b
e found.
  [taskdef] Could not load definitions from resource org/aspectj/tools/ant/taskd
efs/aspectjTaskdefs.properties. It could not be found.

recorder:

-init:
   [delete] Deleting directory C:\BB\recorder\robo-bin
    [mkdir] Created dir: C:\BB\recorder\robo-bin

dex2jar:
     [exec] dex2jar ../wordpress.apk -> C:\BB\recorder\robo-bin\dex2jar-decoded.
jar
     [exec] verify C:\BB\recorder\robo-bin\dex2jar-decoded.jar
    [unzip] Expanding: C:\BB\recorder\robo-bin\dex2jar-decoded.jar into C:\BB\re
corder\robo-bin\dex2jar-decoded

resign-apk:
    [mkdir] Created dir: C:\BB\recorder\robo-bin\resignapk
     [copy] Copying 1 file to C:\BB\recorder\robo-bin\resignapk
    [unzip] Expanding: C:\BB\recorder\robo-bin\resignapk\testapp.zip into C:\BB\
recorder\robo-bin\staging
   [delete] Deleting directory C:\BB\recorder\robo-bin\staging\META-INF

compile-aopjava:
    [mkdir] Created dir: C:\BB\recorder\robo-bin\code-bin
    [mkdir] Created dir: C:\BB\recorder\robo-bin\aopjava
     [copy] Copying 466 files to C:\BB\recorder\robo-bin\code-bin
    [javac] C:\BB\recorder\build.xml:132: warning: 'includeantruntime' was not s
et, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 13 source files to C:\BB\recorder\robo-bin\aopjava
    [javac] Note: C:\BB\recorder\src\org\imaginea\botbot\ListenerAdder.java uses
 unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 14 files to C:\BB\recorder\robo-bin\code-bin

run_convertor:
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method
     [java] Adding method

aop:
     [echo] Weaving aspects to .class files before dex converts .class files to
.dex file
     [iajc] warning at C:\BB\recorder\aspects\org\imaginea\botbot\OnLongClick.aj
:14::0 advice defined in org.imaginea.botbot.OnLongClick has not been applied [X
lint:adviceDidNotMatch]
     [iajc] warning at C:\BB\recorder\aspects\org\imaginea\botbot\OnDateChanged.
aj:9::0 advice defined in org.imaginea.botbot.OnDateChanged has not been applied
 [Xlint:adviceDidNotMatch]
     [copy] Copying 1 file to C:\BB\recorder\robo-bin\aop\libs

dex:
    [mkdir] Created dir: C:\BB\recorder\robo-bin\dex
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/Command.class
     [exec] ...while processing org/imaginea/botbot/Command.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/CommandTransmitter$CreateSessio
nTask.class
     [exec] ...while processing org/imaginea/botbot/CommandTransmitter$CreateSes
sionTask.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/CommandTransmitter.class
     [exec] ...while processing org/imaginea/botbot/CommandTransmitter.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/Convertor.class
     [exec] ...while processing org/imaginea/botbot/Convertor.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/CustomVisitor.class
     [exec] ...while processing org/imaginea/botbot/CustomVisitor.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/ListenerAdder.class
     [exec] ...while processing org/imaginea/botbot/ListenerAdder.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/OnClickListenerTest.class
     [exec] ...while processing org/imaginea/botbot/OnClickListenerTest.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/OnItemClickListenerTest.class
     [exec] ...while processing org/imaginea/botbot/OnItemClickListenerTest.clas
s
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/OnItemSelectedListenerTest.clas
s
     [exec] ...while processing org/imaginea/botbot/OnItemSelectedListenerTest.c
lass
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/OnTouchListenerTest.class
     [exec] ...while processing org/imaginea/botbot/OnTouchListenerTest.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/Recorder.class
     [exec] ...while processing org/imaginea/botbot/Recorder.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/ServerProperties.class
     [exec] ...while processing org/imaginea/botbot/ServerProperties.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/TextListner.class
     [exec] ...while processing org/imaginea/botbot/TextListner.class
     [exec]
     [exec] trouble processing:
     [exec] bad class file magic (cafebabe) or version (0033.0000)
     [exec] ...while parsing org/imaginea/botbot/ViewClasses.class
     [exec] ...while processing org/imaginea/botbot/ViewClasses.class
     [exec] 14 warnings
     [copy] Copying 1 file to C:\BB\recorder\robo-bin\staging
     [copy] Copying 1 file to C:\BB\recorder\robo-bin\staging\assets
      [zip] Building zip: C:\BB\recorder\robo-bin\resignapk\app_unsigned.apk

-signapp:

installappapk:
     [echo] Installing C:\BB\recorder\robo-bin\resignapk\app_signed.apk onto def
ault emulator or device...
     [exec] can't find 'C:\BB\recorder\robo-bin\resignapk\app_signed.apk' to ins
tall

BUILD FAILED
C:\BB\build.xml:14: The following error occurred while executing this line:
C:\BB\recorder\build.xml:211: exec returned: 1

Total time: 36 seconds

C:\BB>

Varun Menon

unread,
Apr 10, 2013, 8:39:41 AM4/10/13
to bot-bo...@googlegroups.com
Are you using JDK 1.6. Android supports jdk1.6 as of now and have issues when using 1.7

Varun
Message has been deleted

Datt B

unread,
Jan 24, 2017, 3:12:24 AM1/24/17
to Bot-Bot Users
Hi All,

             I am getting the same issue as below.getting this error.
BUILD FAILED
C:\Users\310275681\Downloads\apache-ant-1.10.0\bin\build.xml:20: Problem: failed
 to create task or type runtarget
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


My Ant script is:
<project name="Example" default="doMain"> 
      <!-- path to the svnant libraries. Usually they will be located in 
ANT_HOME/lib --> 
    <path id="project.classpath"> 
        <pathelement location="${svnjavahl.jar}" /> 
        <pathelement location="${svnant.jar}" /> 
        <pathelement location="${svnClientAdapter.jar}" />
<pathelement location="${svnkit.jar}" />
    </path> 
   
     <!-- load the svn task --> 
    
    <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> 
<taskdef resource="svntask.properties" classpathref="project.classpath"/>
     
  <!-- all properties are in build.properties --> 
  <property file="build.properties" /> 
       
    <target name="doMain"> 
        <echo message="Hi"/> 
        <runtarget target="dobuild"/> 
    </target> 
     
  <target name="dobuild"> 
    <svn username="${svn.username}" password="${svn.password}">
      <build url="${svn.url}" revision="HEAD" destpath="${project.code}" />
    </svn> 
  </target> 
</project> 


Please help us with that error,

Reply all
Reply to author
Forward
0 new messages