p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Android Programming with Android Studio, Fourth Edition (http://p2p.wrox.com/forumdisplay.php?f=812)
-   -   Unresolved symbols in code examples (http://p2p.wrox.com/showthread.php?t=99548)

BruceInCalgary June 12th, 2017 11:13 AM

Unresolved symbols in code examples
 
Hi Jerome.

I am trying to work through the code examples from your book using Android Studio V2.3.2. I am getting some unresolved errors on some of the import statements such as FloatingActionButton and SnackBar. I have tried the code on 2 PCs with the same problem. I have set up several Android devices for testing such as the latest Android API 26, Android 7.1.1 (Nougat) and Android 6.0 (Marshmallow). Am I missing some reference library? Thanks for any help!

Best regards, Bruce


Code:

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;


ccoltharp July 2nd, 2017 09:15 AM

import android.support.design...
 
I am having trouble in chapter 3 of Beginning Android Programming...
The studio version I have is 2.3.3 and it does not recognize the statements with import android.support.design I am following the code in the book. Can anyone help? TIA...Craig

Alexandroid October 9th, 2018 12:09 PM

Having the exact same issue
 
From what I'm reading through this forum, the code examples that are provided in the book are not complete. I tried downloading the example code and opening that as a project and it still gave me tons of errors. Once I got past all the gradle dependency issues and sdk tool version compatibility errors, all references for my imports, and "R", all give the error that the symbol cannot be resolved.

Very hard to learn when example are missing information and not straight forward.

Sorry this isn't an answer just a bump in the thread because no one seems to have the full answer on how to complete these examples.


All times are GMT -4. The time now is 02:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.