简体   繁体   中英

Baseline profile is not avaliable on Android S

I generate a baseline profile according to guidance of baseline profile and want to install my app on Android S devices without Google Play. I found the baseline profile is not available. dump the info of baseline profile by profman command and it shows:

profman : Error when reading profile: Profile version mismatch.

The version of profman on Android S is V015 while the generated baseline profile is V010.

So, the question is, how to make baseline profile available on Android S without the Google Play installation process.

Make sure to use one of the latest AGP versions (7.4.0+). On top of that, when generating and installing the profile, use one of the latest versions of Macrobenchmark and the Profile Installer library.

implementation("androidx.benchmark:benchmark-macro-junit4:1.1.0")
implementation("androidx.profileinstaller:profileinstaller:1.2.0")

In these versions a bug was fixed which caused the problem you're describing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM