issues with the login

31 views
Skip to first unread message

Arjun Vijayvargiya

unread,
Jan 20, 2015, 2:42:17 PM1/20/15
to privly...@googlegroups.com
Hey Shivam,

I was able to login in privlyalpha.org(through my system) with the help of the invitation you sent to me.But when I am trying to login through the app following thing are happening
 
1)username-><myusername>  ,pass->**********(incorrect) 
    
     result:Toast("password/email is incorrect")  that is obvious.
2)username-><myusername>  ,pass->**********(correct) 
    
     result:the app is force closing and redirecting me to the setting_layout.xml

what could it be possibly???


Shivam Verma

unread,
Jan 20, 2015, 10:10:35 PM1/20/15
to Arjun Vijayvargiya, privly...@googlegroups.com
Can you post the logcat output. 

--
You received this message because you are subscribed to the Google Groups "privly-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privly-mobil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arjun Vijayvargiya

unread,
Jan 21, 2015, 12:28:17 PM1/21/15
to privly...@googlegroups.com, arjun....@gmail.com
01-21 22:13:46.945: W/dalvikvm(16508): threadid=1: uncaught exception occurred
01-21 22:13:46.946: W/System.err(16508): java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity
01-21 22:13:46.947: W/System.err(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:262)
01-21 22:13:46.947: W/System.err(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:1)
01-21 22:13:46.947: W/System.err(16508): at android.os.AsyncTask.finish(AsyncTask.java:631)
01-21 22:13:46.948: W/System.err(16508): at android.os.AsyncTask.access$600(AsyncTask.java:177)
01-21 22:13:46.948: W/System.err(16508): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
01-21 22:13:46.948: W/System.err(16508): at android.os.Handler.dispatchMessage(Handler.java:107)
01-21 22:13:46.948: W/System.err(16508): at android.os.Looper.loop(Looper.java:194)
01-21 22:13:46.948: W/System.err(16508): at android.app.ActivityThread.main(ActivityThread.java:5391)
01-21 22:13:46.949: W/System.err(16508): at java.lang.reflect.Method.invokeNative(Native Method)
01-21 22:13:46.949: W/System.err(16508): at java.lang.reflect.Method.invoke(Method.java:525)
01-21 22:13:46.949: W/System.err(16508): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
01-21 22:13:46.949: W/System.err(16508): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
01-21 22:13:46.950: W/System.err(16508): at dalvik.system.NativeStart.main(Native Method)
01-21 22:13:46.950: W/dalvikvm(16508): threadid=1: calling UncaughtExceptionHandler
01-21 22:13:46.952: E/AndroidRuntime(16508): FATAL EXCEPTION: main
01-21 22:13:46.952: E/AndroidRuntime(16508): java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity
01-21 22:13:46.952: E/AndroidRuntime(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:262)
01-21 22:13:46.952: E/AndroidRuntime(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:1)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask.finish(AsyncTask.java:631)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask.access$600(AsyncTask.java:177)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.Handler.dispatchMessage(Handler.java:107)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.Looper.loop(Looper.java:194)
01-21 22:13:46.952: E/AndroidRuntime(16508): at android.app.ActivityThread.main(ActivityThread.java:5391)
01-21 22:13:46.952: E/AndroidRuntime(16508): at java.lang.reflect.Method.invokeNative(Native Method)
01-21 22:13:46.952: E/AndroidRuntime(16508): at java.lang.reflect.Method.invoke(Method.java:525)
01-21 22:13:46.952: E/AndroidRuntime(16508): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
01-21 22:13:46.952: E/AndroidRuntime(16508): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
01-21 22:13:46.952: E/AndroidRuntime(16508): at dalvik.system.NativeStart.main(Native Method)
01-21 22:13:49.830: I/Process(16508): Sending signal. PID: 16508 SIG: 9

I found out the solution for the  java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity in stackoverflow


Its saying that 

Right Click on your project -> Build Path -> Configure Build Path -> Order and Export Tab.

Make sure that "Android Private Libraries" is checked for Export.

If you've added any libraries from the libs/ folder, remove them as they are automatically added in the "Android Private Libraries" section.


But I hav already checked my android private libraries:


Shivam Verma

unread,
Jan 23, 2015, 2:34:06 PM1/23/15
to Arjun Vijayvargiya, privly...@googlegroups.com

The error means that Android is unable to look for the MainActivity class.

java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity

Do you happen to have this file in your local repo ?

Arjun Vijayvargiya

unread,
Jan 24, 2015, 7:47:54 AM1/24/15
to privly...@googlegroups.com, arjun....@gmail.com
Yeah I have MainActivity.java in my local repo. Earlier my order of execution of the project was like that it was first compiling the src folder and then the gen folder due to which JVM was not able to recognize a particular class (that  was MainActivity only) at runtime while executing the LoginActivity.java.I basically fixed the problem by interchanging the order the order of src and gen in (JavaBuildPath->Import and Export-).


     Apart from that I was facing another problem of having 3 different copies of android v4 lib and 2 different copies of play services.I fixed it by updating every library before integrating into the main project.There SHA-I were different.

Now the app is working smoothly.thanks. I just wanted to know are their any bugs as of now on which I could work upon.??? 

Reply all
Reply to author
Forward
0 new messages