jimagic / foreground-camera-plugin

Automatically exported from code.google.com/p/foreground-camera-plugin
Apache License 2.0
0 stars 0 forks source link

compiling error: package R does not exist #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow the readme instructions

What is the expected output? What do you see instead?
I expecte it compile successfuly. Instead, I'm getting this:

-compile:
    [javac] Compiling 16 source files to /home/hugo/project/bin/classes
    [javac] /home/hugo/project/src/com/foregroundcameraplugin/CameraActivity.java:50: error: package R does not exist
    [javac]     setContentView(R.layout.foregroundcameraplugin);
    [javac]                     ^
    [javac] /home/hugo/project/src/com/foregroundcameraplugin/CameraActivity.java:57: error: package R does not exist
    [javac]     FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);
    [javac]                                                       ^
    [javac] /home/hugo/project/src/com/foregroundcameraplugin/CameraActivity.java:61: error: package R does not exist
    [javac]     Button captureButton = (Button) findViewById(R.id.button_capture);
    [javac]                                                   ^
    [javac] /home/hugo/project/src/com/foregroundcameraplugin/CameraActivity.java:83: error: package R does not exist
    [javac]     Button cancelButton = (Button) findViewById(R.id.button_cancel);
    [javac]                                                  ^
    [javac] 4 errors

What version of the product are you using? On what operating system?
I'm on Linux Mint 64bits, not using Eclipse, compiling with `ant debug`.

Please provide any additional information below.
I've tried to remove the bin and gen folders and compile again.

Original issue reported on code.google.com by h...@algorich.com.br on 23 Nov 2012 at 2:50

GoogleCodeExporter commented 8 years ago
Hi Hugo.

Seems it isn't a plugin problem, since it's working with Eclipse and Netbeans 
IDE. It's a compilation problem, you should check with the ant team.

See ya.

Original comment by vinnysof...@gmail.com on 11 Dec 2012 at 4:43

GoogleCodeExporter commented 8 years ago
I got around this by compiling the project as a library (set 
android.library=true in project.properties) and using the resulting library in 
my own project (android.library.reference.1=../ForegroundCameraPlugin). 

Original comment by Shona.Do...@gmail.com on 29 Apr 2013 at 5:46