To modify the deprecated property "uncompressed native libs in bundle" starting with version 8.1, you need to follow these steps:

  1. Open your project in Android Studio.
  2. Navigate to the build.gradle file for your app module.
  3. Locate the android block within the build.gradle file.
  4. Inside the android block, find the splits block.
  5. Within the splits block, locate the abi block.
  6. Remove the line that specifies the deprecated property uncompressedNativeLibsInBundle.

Before:

android {
    // Other configurations
    
    splits {
        abi {
            // Other configurations
            uncompressedNativeLibsInBundle false
        }
    }
}

After:

android {
    // Other configurations
    
    splits {
        abi {
            // Other configurations
        }
    }
}
  1. Save the build.gradle file.

By removing the deprecated property, the build process will use the default behavior of compressing the native libraries in the app bundle


原文地址: https://www.cveoy.top/t/topic/iVsP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录