Android L permission conflict between release and debug apks

后端 未结 1 606
难免孤独
难免孤独 2021-02-05 14:15

I\'ve upgraded to Android L and have both a released version of my app in \"Google play\" and a debug version which we use for development.

They are signed with differen

1条回答
  •  终归单人心
    2021-02-05 14:39

    I can successfully have both debug and release editions of a GCM client app installed on the same Android 5.0 Nexus 9 at the same time, by amending the manifest to use placeholders:

    
    
    

    Note that you should also use ${applicationId} in your for the :

        
            
                
    
                
            
        
    

    (frankly, I am unconvinced that the custom is even needed anymore, given that I tried removing it and can still receive GCM messages)

    If you then define your build.gradle as you have it, with an applicationIdSuffix for one of the build types (e.g., debug), you will wind up with separate custom permissions by build type, and you will be able to have them installed side by side.

    0 讨论(0)
提交回复
热议问题