Skip to content
PAXSTORE edited this page Jul 6, 2018 · 24 revisions

1. How to resolve dependencies conflict?

When dependencies conflict occur, the error message may like below:

Program type already present: xxx.xxx.xxx

Solution:

You can use exclude() method to exclude the conflict dependencies by group or module or both.

e.g. To exclude 'com.google.code.gson:gson:2.8.5' in SDK, you can use below:

implementation ('com.pax.market:paxstoresdk:x.xx.xx'){
    exclude group: 'com.google.code.gson', module: 'gson'
}

2. How to resolve attribute conflict?

When attribute conflict occur, the error message may like below:

Manifest merger failed : Attribute application@allowBackup value=(false) from 
AndroidManifest.xml...
is also present at [com.pax.market:paxstore-3rd-app-android-sdk:x.xx.xx] 
AndroidManifest.xml...
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element
at AndroidManifest.xml:..

Solution:

  • Add xmlns:tools="http://schemas.android.com/tools" in your manifest header

      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.yourpackage"
          xmlns:tools="http://schemas.android.com/tools">
    
  • Add tools:replace = "the confilct attribute" to your application tag:

      <application
          ...
          tools:replace="allowBackup"/>
    

3. When use download parameters API, app client broadcast receiver can't receive download broadcast.

Please make sure you have replaced the right package name in your receiver. The package name is in your project file AndroidManifest.xml -> package="xxx.xxx.xxx.xxx"

<receiver android:name=".YourReceiver">
      <intent-filter>
          <action android:name="com.paxmarket.ACTION_TO_DOWNLOAD_PARAMS" />
          <category android:name="**Your PackageName**" />
      </intent-filter>
</receiver>

4. Why I push parameter success when test, but failed when the App is pushed from PAXSTORE?

Please make sure the App installed in your terminal is the same one you upload to PAXSTORE. There are many developers forgot to upload the latest APK to PAXSTORE, and also make sure the AppKey and AppSecret are correct.

5. When download parameter, return businessCode = "-10" and message = "No params to download"

Please check the parameters you passed in below API.

StoreSdk.getInstance().paramApi().downloadParamToPath(String packageName,
int versionCode, String saveFilePath);

Make sure the packageName and versionCode is the correct one refer to your App