Exception/Problem reporting

 67 topics, 280 posts  » Share this       
Replies: 53 - Last Post: January 04, 2009 19:40 - Locked
by: mhamedbj
showing 1 - 20 of 54
« Previous 1 3
 
Posted: November 05, 2008 20:28 by SecretFile
Hi Martin, sorry for spaming with comments on blog, i am aware of that this bug http://kenai.com/bugzilla/show_bug.cgi?id=56 is difficult for fixing but can i manualy start android aplication when i build it in netbeans?
 
Posted: November 05, 2008 21:22 by Martin Adamek
No problem, I updated the issue: The simplest solution for now is to wait while emluator starts and Android boots up and invoke Run action again.
 
Posted: November 29, 2008 20:29 by afrank
I am having a problem running an app using the current nbandroid revision 10. The "run" target fails in the "-wait-for-emulator", as it doesn't know where to find the "org.netbeans.modules.android.ant.AdbPackageManagerWait". The classpath points to "${libs.AndroidForwardDebugger.classpath}", but it's empty?!

This is the error message:
...
Skipped because property 'is.emulator.running' set.
-wait-for-emulator:
E:\src\AndroidApplication13\nbproject\build-impl.xml:481: taskdef class org.netbeans.modules.android.ant.AdbPackageManagerWait cannot be found
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
...

BTW, it works when I replace "${libs.AndroidForwardDebugger.classpath}" with the real path - e.g., "E:\src\nbandroid\suite\build\cluster\ant\extra\org-netbeans-modules-android-ant-forwarddebugger.jar"
 
Posted: November 05, 2008 22:02 by Gasoline
Hi,

I've Ant, Mercurial, TortoiseMerge and of course NetBeans installed, in addition I have copied the necessary files of nbandroid to my hard drive as instructed in the wiki. After opening the Suite project and building it, I get the following error message at the end of the build output

D:\Inst progs\NetBeans 6.0.1\harness\suite.xml:105: The following error occurred while executing this line:

D:\Inst progs\NetBeans 6.0.1\harness\build.xml:97: No dependent module org.netbeans.api.java.classpath

BUILD FAILED (total time: 4 seconds)


What should I do about this or where should I start looking for a solution?
 
Posted: November 05, 2008 22:14 by SecretFile
Try to open & build each module/project when it log error try to disable java.Support.api include classpath option in edit dialog. Then try to build errors will show then revert changes and build should pass without errors then build suite or better make NBM and import as plugin....good luck
 
Posted: November 05, 2008 22:16 by Gasoline
Sorry, just discovered that this issue has already been posted as a comment on Martin's blog. Stefan who posted the question also answered it;

"Ok i needed to disable org.netbeans.api.java.classpath and try to build and then enable org.netbeans.api.java.classpath and build successful every module each and then build suite Grin It works."

My question now is, and I am really sorry if this is a total newbie question, how do you disable org.netbeans.api.java.classpath?
 
Posted: November 05, 2008 22:19 by SecretFile
That is me Grin! Try that and if does not build i will send you builded nbm's.....
 
Posted: November 05, 2008 22:32 by Gasoline
Grin Thanks! I got it working, figured out how to turn off the the java.Support.api.
If people as lost as I am have the same problem, here is the solution:

-Expand the project node
-Expand the Libraries node
-Right-click on Java Support APIs and
-Choose Edit...
-Un-tick Include Packages in Classpath
 
Posted: November 06, 2008 18:17 by Martin Adamek
Problem with dependencies you are experiencing is caused by some changes between NB 6.1 and 6.5. nbandroid project is compatible with NetBeans 6.5 which you can downoload from http://download.netbeans.org/netbeans/6.5/rc/
I know it is not yet final, but it is Release Candidate and is pretty stabil. If you'll use that, you won't have any problem with build.
 
Posted: November 05, 2008 22:08 by SecretFile
I found very interesting problem with andorid sdk behavior on windows vista 64bit, bat files like apkbuilder & etc...will not run unless this line

cd %~dp0

will be replaced with this line

cd /d %~dp0

then apkbuilder and other bat files works fine, error is that framework/apkbuilder.jar is not found, probably because cmd start drive letter is C:\ and my SDK is in D:\ so it doesnt see SDK folders Frown, now when i try to run android project in netbeans i encore on one more error

Failed to create 'dist/AndroidApplication4.apk' : The system cannot find the path specified
D:\Users\Stefan\Documents\NetBeansProjects\AndroidApplication4\nbproject\build-impl.xml:465: exec returned: 1

and i looked at xml and saw that params for apkbuilder call doesn't have real path but relative, i try it manual in cmd with same params and it didn't worked.... can i change this to be real path to project dist? Thx in advance
 
Posted: November 05, 2008 22:46 by SecretFile
I added path (D:\Users\Stefan\Documents\NetBeansProjects\AndroidApplication4\) manualy in before ${dist.apk} and it works! Good job Martin! I LOVE IT!
<exec executable="${apkbuilder}" failonerror="true">
<arg value="D:\Users\Stefan\Documents\NetBeansProjects\AndroidApplication4\${dist.apk}"/>
<arg value="-z"/>
<arg value="D:\Users\Stefan\Documents\NetBeansProjects\AndroidApplication4\${dist.apk}_"/>
</exec>
So next question is how can i modify creating project(build-impl.xml) to generate that path?
@all: Good night.
 
Posted: November 27, 2008 06:36 by afrank
The following should do it:

<exec executable="${apkbuilder}" failonerror="true">
<arg value="${basedir}/${dist.apk}"/>
<arg value="-z"/>
<arg value="${basedir}\${dist.apk}_"/>
</exec>
 
Posted: November 06, 2008 19:03 by SecretFile
One more question, is there automated uninstall of package or update, coz when i run android project my app is installed in emulator, next time when i change code i get message app is already installed?
 
Posted: November 06, 2008 20:39 by Martin Adamek
Not yet, but you can invoke shell and remove it from there:

$ANDROID_SDK/tools/adb shell
cd /data/app
rm yourapp.apk
 
Posted: November 06, 2008 20:45 by SecretFile
Ok thx, i will write down bat file and try to import it inside build-impl.xml....
 
Posted: November 06, 2008 21:27 by SecretFile
No need for bat just replace code

<target depends="init,compile,jar,-sign,-start-emulator,-wait-for-emulator" name="-install-app"> <exec executable="${adb}"> <arg value="install"/> <arg value="${dist.apk}"/> </exec> </target>


with this code inside build-impl.xml
<target name="-pre-install-app"> <exec executable="${adb}"> <arg value="uninstall"/> <arg value="${main.component}"/> </exec> </target> <target depends="init,compile,jar,-sign,-start-emulator,-wait-for-emulator,-pre-install-app" name="-install-app"> <exec executable="${adb}"> <arg value="install"/> <arg value="${dist.apk}"/> </exec> </target>


I also edited source of android project plugin to have automated update of aplication, no need to manual delete package, and have fix for path of apk_ files if anyone is interested i will upload NBM for download. Good night, dev ppl.
 
Posted: November 07, 2008 17:37 by Martin Adamek
So why don't you create enhancement for that in issue tracking + patch so that somebody can review it? Smile
 
Posted: November 07, 2008 21:16 by SecretFile
How to do that, sorry i am new to this community?
 
Posted: November 06, 2008 23:19 by SecretFile
setContentView(R.layout.lunar_layout);
mLunarView = (LunarView) findViewById(R.id.lunar);

netbeans doesn not see R it reports error...and i am using NetBeans 6.5? What that could be?
 
Posted: November 07, 2008 17:37 by Martin Adamek
I think that aapt tool can create R.java, that's still one thing I need to look at.
showing 1 - 20 of 54
« Previous 1 3
Replies: 53 - Last Post: January 04, 2009 19:40 - Locked
by: mhamedbj
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20100521.d19488a)
 
 
loading
Please Confirm