Unable to run the app on my device using android studio.
The app should run on my device
Android version: 7.1.1
Device model: OnePlus 3T


Hi @sd1998 , this error may appear because you have the ownCloud release app installed and when you try to install the apk generated during development, which is different to the release one and not signed, a conflict is triggered when Android tries to update the release app with the debug app.
So, as the dialog you attach suggests you, uninstalling the ownCloud app from your device, should be enough to fix the problem.
@davigonz I tried that but still I am getting the same error.
Hi again @sd1998 , try the next steps in Android Studio:
@davigonz I tried that also but I am still getting the same error.
Hi @sd1998 , are you using the code just downloaded from the github repo or have you included any change? With which branch are you working? Are you having the same problem with an emulator?
@davigonz I add the camera upload feature and I am working on the master branch should I work on the beta?
@sd1998 I meant if you were having the same error before applying your changes. It doesn't matter the branch you are using in your repo, as long as it has been created from master branch.
@davigonz Yes I was getting the same error before making the changes.
@sd1998 hmm, could you attach here the details when clicking Binder-java:580? Thanks

@sd1998 Try to generate the apk file and install it manually in the device. It's possible that once the app is installed, the next time you press the run button in Android Studio, it will work.
Follow the next steps:
@davigonz I tried it and it did not work I am receiving the same error.
Can there be a problem if I have JAVA9?
@sd1998 did you check with java8?
@jesmrec Yes I tried but it does not work.
@sd1998 very weird behaviour... you does not have any previous installation in the device so it should work. Could you check over a new created emulator? Other option is clearing Android Studio cache, not only the project's one (File > Invalidate Caches/Restart) and build again.
Do you have Instant Run enabled?
@sd1998 did you upgrade Android Studio to 3.x?
@jesmrec Yes I have the upgraded version.
@sd1998 did you check https://github.com/owncloud/android/issues/2060#issuecomment-342481296
@jesmrec Sorry I missed it
I will try out what you suggested.
@sd1998 did you have time to check? if you need help, don't hesitate...
Hi @sd1998 , I've just noticed the same problem while using a different computer and I have fixed by disabling the Instant Run feature. To do that, go into File > Settings > Build, Execution, Deployment > Instant Run and disable it.
@davigonz Thanks I will try it now
@davigonz It is working now thanks for the help Now I will work on #2060
It is working now thanks for the help Now I will work on #2060
@sd1998 Awesome! I will close this, since it's already fixed.
Hi, I'm having the same issue and I have already tried each and every things. I have no clue what else to do. can someone help
did you check https://github.com/owncloud/android/blob/master/SETUP.md#2-working-with-android-studio @prabhashibuddhima ?
I have the issue when I install tha app on my android phone. It install but it closed imdedgtely, without showing any error. Can anyone help me.
Thanks
@nidasajjad which server version and app version? how do you install the app?
@jesmrec the server version and app version is same and that is 29. And I install app by both method. Build apk and directly install to android mobile but it shows same error
Most helpful comment
Hi @sd1998 , I've just noticed the same problem while using a different computer and I have fixed by disabling the Instant Run feature. To do that, go into File > Settings > Build, Execution, Deployment > Instant Run and disable it.