Mobile/Fennec/Android/IDEs: Difference between revisions

Line 68: Line 68:
* If you've pulled in changes to the Gradle configuration lately, refresh Gradle: View > Tool Windows > Gradle and click the blue "sync" button in the top left.
* If you've pulled in changes to the Gradle configuration lately, refresh Gradle: View > Tool Windows > Gradle and click the blue "sync" button in the top left.
* If changes don't seem to be taking, make sure the cache is cleared with File > Invalidate caches. Restart.
* If changes don't seem to be taking, make sure the cache is cleared with File > Invalidate caches. Restart.
* Does your error look like Error:Internal error: (java.io.FileNotFoundException) $obj-dir/mobile/android/gradle/.idea/misc.xml (No such file or directory) ? You might need to reimport $OBJDIR/mboile/android/gradle (after running |mach gradle-install|) ?
* Does your error look like ''Error: Internal error: (java.io.FileNotFoundException) $OBJDIR/mobile/android/gradle/.idea/misc.xml (No such file or directory)''? Try running <tt>mach gradle-install</tt> and re-importing <tt>$OBJDIR/mboile/android/gradle</tt>.
 
=== Why aren't my JavaScript changes being noticed? ===
 
The Gradle configuration recognizes JavaScript changes (like ''mobile/android/chrome/content/browser.js'' and ''mobile/android/modules/Messaging.jsm'') underneath the ''mobile/android'' directory.  It does not recognize changes in other places in the tree, including under ''toolkit/''.  To make Gradle pick up your changes, modify a JavaScript file under ''mobile/android''.  Or, if you have a command line handy, run <tt>mach build mobile/android/base/gradle-omnijar</tt>.  Then re-run Gradle; you should find your changes are noticed.


=== Import problems ===
=== Import problems ===
Confirmed users
355

edits