Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Please note that this fix may only apply to IntelliJ users!! (More information at the bottom of this post that should apply to everyone.)</strong></p> <p>Fixed this problem! I use <a href="https://www.jetbrains.com/idea/" rel="noreferrer">IntelliJ</a> and it turns out I just had misconfigured the way I was including the <code>google-play-services_lib</code> module as a dependency.</p> <p>As I fixed this entirely through GUI and not at all by editing any files, here's a couple of screenshots:</p> <p><img src="https://i.stack.imgur.com/wkWhI.png" alt="Step 1 - Initial Project Structure"> So my Project Structure started off looking like this...</p> <p><img src="https://i.stack.imgur.com/9WVdi.png" alt="Step 2 - Removed google-play-services library"> Then I removed the <code>google-play-services</code> library from my dependencies list by selecting it and then clicking the minus button at the bottom. Notice the error at the bottom of the dialog, as my project absolutely does require this library. But don't worry, we'll re-add it soon!</p> <p><img src="https://i.stack.imgur.com/OkjYY.png" alt="Step 3 - Added google-play-services as a module dependency"> Next I added <code>google-play-services_lib</code> as a module dependency instead of a library dependency. Then I hit the up arrow button at the bottom a couple times to move this dependency to the top of the list. But notice the error at the bottom (we're still not done yet!)</p> <p><img src="https://i.stack.imgur.com/gppfK.png" alt="Step 4 - Click the lightbulb to add the google-play-services library as a dependency"> I then clicked the lightbulb at the bottom of the dialog in the error message area to bring up this little small popup that gives two choices (<em>Add to dependencies...</em> or <em>Remove Library</em>). Click the <em>Add to dependencies...</em> option!</p> <p><img src="https://i.stack.imgur.com/wvVGA.png" alt="Step 5 - Add the library to the google-play-services_lib module"> A new small dialog window should have popped up. It gave me two choices, one for my main project (it's name is blurred out), and then another for the <code>google-play-services_lib</code> project. Yours may have a bunch more depending on your project (like you may see <code>actionbarsherlock</code>, stuff like that). Select <code>google-play-services_lib</code> and click okay!</p> <p>And finally, you're done! I hope this helps someone else out there!</p> <h2>Further info</h2> <p>I believe the reason that this issue was happening to begin with is because I <em>thought</em> that I had properly included the entire <code>google-play-services_lib</code> project into my overall project... but I actually had not, and had instead only properly included its jar file (<code>google-play-services_lib/libs/google-play-services.jar</code>). That jar file only includes code, not Android resources values, and so as such the <code>@integer/google_play_services_version</code> value was never <em>really</em> in my project. But the code was able to be used in my project, and so that made it seem like everything was fine.</p> <p>And as a side note, fixing this issue also seems to have fixed the <code>GooglePlayServicesUtil.getErrorDialog(...).show()</code> crash that I used to have. But that could also have been fixed by the update, not really 100% sure there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload