App crashes on cloning it and building it
Software and hardware versions
Collect: the recent version , Android 7.0, device used motorola g4
Problem description:
The app gets crashed as soon as i built my gradle and i cant view any functionality.
Steps to reproduce:
Clone or download the recent version of the app and run it on your external device(phone).
Expected behavior
The app should open normally as it did in the previous version.
Other information:
Its the string null versionname variable which i think is not working properly.
Would i like to work on this issue? Yes.
Can you please include what operating system you're on, whether git is in your path and a stacktrace? If you need help getting any of those, let us know!
Oh, and if you have an old fork, make sure you have updated because there was a fix in #697.
03-22 20:55:10.695 17423-17423/org.odk.collect.android E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.odk.collect.android, PID: 17423
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.odk.collect.android/org.odk.collect.android.activities.MainMenuActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceFirst(java.lang.String, java.lang.String)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceFirst(java.lang.String, java.lang.String)' on a null object reference
at org.odk.collect.android.application.Collect.getVersionedAppName(Collect.java:179)
at org.odk.collect.android.activities.MainMenuActivity.onCreate(MainMenuActivity.java:223)
at android.app.Activity.performCreate(Activity.java:6672)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
@yprasant0 Is git in your path? What operating system are on?
I am using ubuntu operating system. Yes git is in my path way.
I think your fork is two commits behind this fix. If you update your fork with upstream, you won't run into this issue again because of #697.
Please update it first and see if you still run into this issue.
@nribeka i updated it still it is crashing.
In your Terminal, what happens if you type which git.
Then inside the collect folder that has README.md what happens if you type git describe --tags
Sorry was not there.Yeah the fork was old, i got it fixed with new fork.
On Thu, Mar 23, 2017 at 7:24 PM, Yaw Anokwa [email protected] wrote:
In your Terminal, what happens if you type which git.
Then inside the collect folder that has README.md what happens if you type git describe --tags
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opendatakit/collect/issues/735#issuecomment-288726052, or mute the thread https://github.com/notifications/unsubscribe-auth/AWXjWB9OAoKRBjemsdzmbed3P7FUh9oRks5ronmQgaJpZM4MlXIy .
--
Prasant Kumar Yadav B-tech ECE Amrita University Github https://github.com/yprasant0