Skip to content

Production and debug version can't be installed on same device #2393

Closed

Description

@hannesa2

It happen with version 2.9.3 and the app declaims about authorities

And there is an old one #1091 too

Activity

  1. hannesa2 commented on Dec 8, 2018

    @hannesa2
    ContributorAuthor

    In this #2391 there is a commit fee4f6e which solves it.
    Unfortunately this #2076 has no progress, that's why I've to do in build.gradle otherwise I would overwrite it in debug directory. But with Eclipse structure it's not possible 👎

  2. hannesa2 commented on Dec 8, 2018

    @hannesa2
    ContributorAuthor

    But now I run into next issue. Prod and debug version try to use same account, but ExistenceCheckRemoteOperation.java prevent to use it
    https://github.com/owncloud/android-library/blob/7dc611cd1444914bdd71615fa54b053d7c429ad1/src/com/owncloud/android/lib/resources/files/ExistenceCheckRemoteOperation.java#L116

    What's the best way to enable this ?

  3. added this to the 2.10.0 milestone on Jan 2, 2019
  4. hannesa2 commented on Feb 27, 2019

    @hannesa2
    ContributorAuthor

    @davigonz do you have an idea ?

  5. davigonz commented on Feb 27, 2019

    @davigonz
    Contributor

    @davigonz do you have an idea ?

    @hannesa2 I fixed #2391 (comment) locally, gave it another try and I was able to install both debug and release apks at the same time but the error I get is different from what you have:

    java.lang.IllegalArgumentException: Trying to execute a sync operation with a NULL storage manager
            at com.owncloud.android.operations.common.SyncOperation.execute(SyncOperation.java:109)
            at com.owncloud.android.ui.activity.FileDisplayActivity$5.run(FileDisplayActivity.java:1725)
    

    This error is triggered because the storage manager is never created due to https://github.com/owncloud/android/blob/master/owncloudApp/src/main/java/com/owncloud/android/ui/activity/BaseActivity.java#L155 is not called because there's no new account when installing release apk after debug one but the same account.

    With those hints, you could keep working on it via #2391

  6. davigonz commented on Mar 4, 2019

    @davigonz
    Contributor

    We are about to release 2.10 version so let's put this off till 2.11.

  7. modified the milestones: 2.10.0, 2.11.0 on Mar 4, 2019
  8. davigonz commented on Mar 19, 2019

    @davigonz
    Contributor

    Closing this since is no longer a priority (#2391 (comment)) , reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions