andrebts / login-basics Goto Github PK
View Code? Open in Web Editor NEWThe Login Basics is an implementation of Android Login with Facebook, Google Plus (G+) and your own app login.
The Login Basics is an implementation of Android Login with Facebook, Google Plus (G+) and your own app login.
Hola amigo,
mira el error que reporte es porque nunca entra al metodo
facebookLoginButton.registerCallback(callbackManager, new FacebookCallback() {
....
..
}
no arroja un error como tal, simplemente si debugeo el código nunca entra a ese metodo
así mismo con google no puedo loguearme tampoco, me pide mis cuenta y todo pero no pasa de ahí
siempre arroja el toast con el siguiente mensaje: "Person information is null"
Have you try the new version of Facebook sdk?
When I use the 'com.facebook.android:facebook-android-sdk:4.1.0+'
I always got the error when I sync gradle:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'H:\Android\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I have try the 4.0.0: it work.
I have try to remove the play-service: it work
but the 4.1+ version facebook with play service always got this error.
I am trying to integrate my android app with Gmail login using your project. After pressing 'Sign in With Google' Bitton, I get error message as ' Error on Login, Check your google + Login method' .
Please advise on how to fix this.
According to the steps to integrate Facebook login but the mistakes:
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.example.licar2.myapplication, PID: 2168 java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:911) at com.facebook.internal.Utility.queryAppSettings(Utility.java:846) at com.facebook.login.widget.LoginButton$1.run(LoginButton.java:491) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)
Can you help me?
If I want to use the code I have to copy all files.
Isn't it easier to create a library and publish it on jcenter?
<dimen name="nav_header_vertical_spacing">16dp</dimen>
You forgot to define this in res/values/dimens.xml
and for devices with API < 21 its have after login
Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
at android.view.View.<init>(View.java:3345)
at android.widget.TextView.<init>(TextView.java:447)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:48)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:44)
at android.support.v7.internal.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:912)
at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:966)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.support.design.internal.NavigationMenuPresenter.inflateHeaderView(NavigationMenuPresenter.java:207)
at android.support.design.widget.NavigationView.inflateHeaderView(NavigationView.java:246)
at android.support.design.widget.NavigationView.<init>(NavigationView.java:168)
at android.support.design.widget.NavigationView.<init>(NavigationView.java:92)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:255)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
at bscorp.appbase.MainActivity.onCreate(MainActivity.java:22)
Buenas noches,
Estuve tratando de correr la app pero no lo conseguí, agregue el Json faltante las Keys entre todo lo demás y hasta consigo los permisos pero no me da una respuesta satisfactoria la app para el login con Facebook ni con Gmail, sabrán de alguna falla?
Error:Execution failed for task ':app:processDebugGoogleServices'.
File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.