0

I imported project that I bought and it runs fine in Android Studio and on my mobile.

Did some minor layout modifications and Build-Generate Signed APK..." All went fine there. When I try to upload APK to Google Play i get this error message

You need to use a different package name because "com.projects.myprojectname" already exists in Google Play.

Then I changed the name in AndroidManifest.xml - package:com.xpodspofs.xpospor" to be sure that the name does not exist.

After that I got 101 errors:

"error: package R does not exist"
Biswajit_86
  • 3,661
  • 2
  • 22
  • 36
Azz Kawa
  • 101
  • 1
  • is there any error in layout files..?? – Saurabh K. Sharma Jul 18 '15 at 18:17
  • R file is automatically generated if there's no error in your code. Try to see if package name is changed everywhere and there's no error left. – Sharjeel Jul 18 '15 at 18:17
  • It has not changed everywhere just in manifest (manually), everywhere else is same. I tried opening each error and changed the name but that lead to another 101 errors but this time they are not about package R. – Azz Kawa Jul 18 '15 at 19:37
  • @saurabh. no errors in layout files as i can build APK without changing the name with no errors at all. – Azz Kawa Jul 18 '15 at 19:39

3 Answers3

0

Try to completely rebuild your Project with Build -> Clean Project and then Build -> Rebuild Project

Luca Schimweg
  • 747
  • 5
  • 18
0

Create a new project, and manually copy-paste all the classes, xml files and the manifest.

0

Try checking your build.gradle file, and after correcting it and manifest file, restart android studio and then rebuild project.