R cannot be resolved for inflating raw queries
<p>I know this is a pretty common question and I looked around the web and this forum for an answer but none of them seem to be working for me. I did the typical stuff like deleted my R.java and cleaned my project, made sure my class did not have a import for the R.java class. I tried rebuilding my project etc.  </p>

<p>So here is what I have going on. I am trying to inflate a database from some raw SQL statements. I am using the book The Busy Coders Guide to Advanced Android Development book as a guide to do this. </p>

<p>it gives the following line of code:</p>

<pre><code>InputStream stream=ctxt.getResources().openRawResource(R.raw.packaged_db);
</code></pre>

<p>and says the file is located within the res/raw directory like so "res/raw/packaged_db.txt"</p>

<p>I have placed my sql dump file: res/raw/raw_game_data.sql</p>

<p>and here is my line of code that is throwing the error:</p>

<pre><code>InputStream inputStream = context.getResources().openRawResource(R.raw.raw_game_data);
</code></pre>

<p>any ideas or suggestions on what I am missing?</p>

<p>Thanks,</p>
