I ran into a similar problem but it turned out that just using "Organize 
Imports" on each of those files did the trick.  And doing so just 
eliminated the .R reference altogether in each file.  Then it built.  Isn't 
changing development environments fun!

On Thursday, December 18, 2014 9:59:58 PM UTC-8, Nathan wrote:
>
> Okay, well maybe the rest of you have been able to just push a button and 
> your projects build in Android Studio instead of Eclipse. Hasn't happened 
> for me. 
>
> I think I'm having an extra amount of trouble because I've used an Android 
> Library project, with two other projects that depend on it. 
> Android Studio doesn't seem to handle this well, at least not the same. 
>
> The latest problem is that the library can't have the same package name as 
> a project that includes it. That seems fair. 
>
> So I went into the manifest of the library files and changed
>
> *com.company.product*to
> com.company.product.library 
>
> Fine so far. 
>
> Of course I got a gazillion errors
>
> I couldn't find any way to do this in refactoring tool, so I went through 
> every single affected source file and 
> changed 
> *import com.company.product*.R;
> to 
> *import com.company.product*.library.R;
>
> I figured that would do the trick. 
> Nope. 
>
> I still have 103 errors stating. 
>
>
> * error: package R does not exist*Now I am not sure why R does not exist. 
> Won't they generate it in library projects?
>
> Nathan
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to