[android-developers] Re: NPE in Pre Compiler using Eclipse 3.7.1

2012-01-10 Thread weston
For me I checked out a fresh copy out of SVN to sort this issue out. I 
imagine the only effect this had was to clear the gen folder (which I don't 
have committed).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: NPE in Pre Compiler using Eclipse 3.7.1

2012-01-01 Thread James Black
I found that dx.jar was not in platform-tools/lib so I copied it from
platforms\android-3\tools\lib and that may have fixed my problem.  At
least everything is compiling, and the emulator started up.

Should dx.jar be with the SDK?

On Dec 31 2011, 10:51 pm, James Black planiturth...@gmail.com wrote:
 I looked at another two projects that use a different library and I
 have a different problem that is new, as I had recently built this and
 put it on the market:
 R cannot be resolved to a variable

 For this line:
 case R.id.clear_menu:

 I have the ids defined in the library, as they are shared for both
 projects, and this used to work.

 So, I think the fact that I am not copying the res files from the
 library to the actual projects may be the problem, which to me seems
 to be a bug.

 On Dec 31, 10:20 pm, James Black planiturth...@gmail.com wrote:







  I recently updated my SDK, and in one project I am getting this error:

  !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
  !MESSAGE Unknown error: java.lang.NullPointerException
  !STACK 0
  java.lang.NullPointerException
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
  th(AaptParser.java:721)
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
  er.java:473)
  at
  com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
  r.java:370)
  at
  com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui 
  ld(PostCompilerBuilder.java:599)
  at
  org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
  at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
  199)
  at
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
  321)
  at
  org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
  at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
  at
  org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
  at org.eclipse.core.internal.resources.Project.build(Project.java:124)
  at
  com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementa 
  lDebugBuild(ProjectHelper.java:961)
  at
  com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Lau 
  nchConfigDelegate.java:146)
  at
  org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
  ion.java:854)
  at
  org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
  ion.java:703)
  at
  org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja 
  va:928)
  at
  org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

  I have this in project.properties:
  android.library.reference.1=../BookTrackerLib

  java.runtime.version=1.6.0_29-b11

  [image: image.png]

  For my project, everything is done in the library, so here is my main
  activity:
  public class BookTrackerActivity extends BookTrackerLibActivity {
  public void onCreate(Bundle savedInstanceState) {
  mContext = this;
  super.onCreate(savedInstanceState);

  }
  }

  I don't know what else may be needed to help solve this problem.  I have
  cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
  the main project, still have the same error.
  --
  I know that you believe you understand what you think I said, but I'm not
  sure you realize that what you heard is not what I meant.
  - Robert McCloskey

   image.png
  14KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: NPE in Pre Compiler using Eclipse 3.7.1

2011-12-31 Thread James Black
I looked at another two projects that use a different library and I
have a different problem that is new, as I had recently built this and
put it on the market:
R cannot be resolved to a variable

For this line:
case R.id.clear_menu:

I have the ids defined in the library, as they are shared for both
projects, and this used to work.

So, I think the fact that I am not copying the res files from the
library to the actual projects may be the problem, which to me seems
to be a bug.

On Dec 31, 10:20 pm, James Black planiturth...@gmail.com wrote:
 I recently updated my SDK, and in one project I am getting this error:

 !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
 !MESSAGE Unknown error: java.lang.NullPointerException
 !STACK 0
 java.lang.NullPointerException
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
 th(AaptParser.java:721)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
 er.java:473)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
 r.java:370)
 at
 com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui 
 ld(PostCompilerBuilder.java:599)
 at
 org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
 199)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
 321)
 at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
 at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
 at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
 at org.eclipse.core.internal.resources.Project.build(Project.java:124)
 at
 com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementa 
 lDebugBuild(ProjectHelper.java:961)
 at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Lau 
 nchConfigDelegate.java:146)
 at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
 ion.java:854)
 at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
 ion.java:703)
 at
 org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja 
 va:928)
 at
 org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 I have this in project.properties:
 android.library.reference.1=../BookTrackerLib

 java.runtime.version=1.6.0_29-b11

 [image: image.png]

 For my project, everything is done in the library, so here is my main
 activity:
 public class BookTrackerActivity extends BookTrackerLibActivity {
 public void onCreate(Bundle savedInstanceState) {
 mContext = this;
 super.onCreate(savedInstanceState);

 }
 }

 I don't know what else may be needed to help solve this problem.  I have
 cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
 the main project, still have the same error.
 --
 I know that you believe you understand what you think I said, but I'm not
 sure you realize that what you heard is not what I meant.
 - Robert McCloskey

  image.png
 14KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en