All Products
Search
Document Center

Mobile Platform as a Service:How to troubleshoot mobile gateway error "7014"

Last Updated:Jan 29, 2026

Problem description

The log shows an RPC exception with code 7014.

Solution

Security Guard

  1. Check that the packaging configuration in the app's build.gradle file is correct.

    signingConfigs {
        release {
            keyAlias 'mpaas123'
            keyPassword 'mpaas123'
            storeFile file('keystore/custom_title.jks')// Use the .jks suffix for the signature file. The .kstore suffix may cause a loading screen with three blue dots to appear when you open a miniapp.
            storePassword 'mpaas123'
        }
        debug {
            keyAlias 'mpaas123'
            keyPassword 'mpaas123'
            storeFile file('keystore/custom_title.jks')
            storePassword 'mpaas123'
        }
    }
    
     buildTypes {
            release {
                minifyEnabled false
                shrinkResources false  // Set this to false to temporarily disable resource obfuscation for debug and release builds.
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'mpProguard.cfg'
            }
        }
    Note

    The build type of the test package must match the build type of the APK package that you upload to the mPaaS console. For example, if you upload a release APK, you must use a release package for testing.

  2. Check that the keep rule for Security Guard is added to the obfuscation configuration.

    If the keep rule is not added, see Add obfuscation configuration. Use the keep rule to package the app and generate the drawable/yw_1222 Security Guard image.

  3. If you use Android Studio with Gradle version 4.2 or later, add the android.enableResourceOptimizations=false property to the gradle.properties file.

    dependencies {
        classpath "com.android.tools.build:gradle:4.1.1"
        classpath 'com.android.boost.easyconfig:easyconfig:2.8.4'
    }
    
    # In Android Studio 4.2, resource obfuscation for the Security Guard image causes error 7014.
    # Disable resource optimization to resolve the issue.
    android.enableResourceOptimizations=false
  4. If error 7014 persists after you complete these checks, upload the APK again. Then, download the configuration file, import it, and test again.