Sending messages from Android Wear to host device

前端 未结 7 1928
忘了有多久
忘了有多久 2020-12-02 19:27

I\'m writing a custom Android Wear application that\'s supposed to fire a one-off message to the connected host device (the phone). Digging through the API, I found the foll

7条回答
  •  渐次进展
    2020-12-02 19:41

    The usual suspects are:

    • the applicationId as others have mentioned and
    • the signing certificates used

    In the basic case, the following parts should be identical, in the gradle configurations of both apps.

    defaultConfig {
        applicationId = "com.your.domain" 
    }
    
    signingConfigs {
        debug {
            storeFile file("../debug.keystore")
        }
        release {
            storeFile file("../release.keystore")
        }
    } 
    

    Both apps need to use the same applicationId and be signed with the same certificate.

提交回复
热议问题