0

I have a project in android studio that works very well but when I change my package name and applicationId, my project crashes.

Error:

No adapter attached; skipping layout
Strider
  • 4,452
  • 3
  • 24
  • 35
AndroidDev
  • 701
  • 3
  • 9
  • 21

1 Answers1

2

Use refactoring (Shift + F6) instead of renaming the package manually. Make sure your settings.gradle is correct ( change include ':app' to new name ). Invalidate cache and restart Android-Studio. Rebuild your project. It should work then.

Michael D.
  • 1,795
  • 2
  • 18
  • 25
  • i see this error by this method: Failed to find provider info for com.example.newname – AndroidDev Feb 29 '16 at 14:32
  • what's your new packagename? show some code .... – Michael D. Feb 29 '16 at 14:33
  • my first package name was: com.tellme.tellme. second name is: com.tell.bot. in gradle applicationId was: com.tellme.tellme and now is: com.tellme.bot. note is here i see this error: Failed to find provider info for com.bot.bot!!!!! – AndroidDev Feb 29 '16 at 14:43
  • do not have any idea? – AndroidDev Feb 29 '16 at 15:22
  • open the java class file(s) and press CTRL + ALT + O to fix imports. Maybe due to refactoring package names imports are wrong or missing. (This is a good read: http://beginnersbook.com/2013/03/packages-in-java/ ) – Michael D. Feb 29 '16 at 15:31