• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

After moving android sdk, android studio is bricked

I moved the android sdk to the D drive because I ran out of space. I relinked the sdk path from android studio but when I run builds it gives this error: "Android resource linking failed.
error: failed linking file resources."
I even tried making a new project and I still face the same error. I don't know whether to keep trying to fix this or just reinstall the android sdk. I attached an image showing the error. Any help would be appreciated. Thank you
 

Attachments

  • 2018-10-30.png
    2018-10-30.png
    141.1 KB · Views: 154
I'd check edit_todo_menu.xml. That's what the error is referring to

"action_delete is incompatible with attribute id....."
OMG you are a godsend. Turns out the 100+ errors in all my files was because I forgot to use the prefix "+@id" in the id of a menu item. Thank you so much for the help.
 
Installing Android SDK

(For Windows)
  1. Launch Android Studio ⇒ It will run the "setup" wizard for the first launch ⇒ do not import previous settings ⇒ In "Installation Type", choose "Standard" ⇒ Check the SDK folder, by default @ c:\Users\username\AppData\Local\Android\Sdk ⇒ Finish.
    This step will download another 1GB of SDK package and take times to complete.
    Note: In Windows, "AppData" is a hidden directory. You need to choose "View" ⇒ Check "Show Hidden Items" to see this directory.
  2. (Optional) You can check the SDK packages installed by selecting "Configure" ⇒ "SDK Manager":
    • Under "SDK Platforms":
      • Android API 27
    • Under "SDK Tools":
      • Android SDK Build Tools
      • Android Emulator 27.x.x
      • Android SDK Platform-Tools 27.x.x
      • Android SDK Tools 26.x.x
      • Intel x86 Emulator Accelerator (HAXM installer)
      • Android Support Repository
      • Google Repository
  3. Android apps are written in Java, and use XML extensively. I shall assume that you have basic knowledge of Java and XML form any Android Training center then you can easily handle to this app development process.
 
Back
Top Bottom