Tag Archives: android developers

Optimize your app publishing process with new Google Play Console features

Steve Suppe, Product Manager, Google Play

Publishing your app or game is one of the most important moments in your app’s lifecycle. You want everything to go smoothly, from making sure the production release is stable, to getting test releases out quickly, to getting your marketing message just right.

That’s why visibility is key. Knowing when your app is in review, when it’s been approved, and when it can go live on Google Play helps you set your own schedule.

Now, with two new features in the new Google Play Console, you can do just that. The Publishing overview page helps you better understand your publishing process and Managed publishing gives you better control of when your app updates go live on Google Play. When the new Play Console rolls out to everyone starting November 2, these features will be the recommended way to control your release timing, so let’s take a closer look.

Publishing overview

The new Publishing overview page displays all your recent changes to your releases, store listings, and more, including those that are currently being reviewed or processed by Google Play. For those of you with larger teams, this means you can now coordinate all your changes in one place and publish everything at the same time.

Unlike the developer activity log, the Publishing overview only shows changes that will be visible on Google Play, or what you’ve told us about how we should consider and review your app.

The “Changes in review” section lets you quickly see changes
that have not been published yet.

These changes are organized by the type of change or release track so it’s easy to understand at a glance.

Managed publishing

Many of you may be familiar with Timed publishing in the old Play Console. In the new Play Console, we’ve replaced Timed publishing with Managed publishing, to give you a clearer and more predictable publishing experience.


When you enable Managed publishing, approved changes will only go live when you decide instead of automatically after review and processing. This allows you to submit changes long before your intended release date, giving yourself time to review or make changes without sacrificing control over your publishing date.

See which changes have been reviewed and approved

When Managed publishing is on, the Publishing overview page contains two sections: one that shows which changes have been approved and are ready to publish, and another that shows changes that are still in review.

We’ve also made some improvements that many of you have been asking for:

  • You can now publish your approved changes even if other changes are still in review. Previously, Timed publishing did not allow you to make any changes live until all changes had been approved.
  • You can turn Managed publishing on or off at any time, even if there are changes in review or ready to publish. You no longer have to wait for pending reviews before you can use Managed publishing.

See if Managed publishing is turned in the left-hand navigation menu

Soon, you’ll be able to see the Managed publishing icon in the left-hand nav next to Publishing overview. This way, you can tell Managed publishing is on from anywhere in the Play Console.

To learn more about publishing with the new Play Console, including scenarios when these features would be most useful, check out this course from Play Academy. And if you haven’t already, update to the new Play Console at play.google.com/console and give Managed publishing a try.

How useful did you find this blog post?

All developers will get the new Google Play Console on November 2, 2020

Posted by Tom Grinsted, Product Manager, Google Play Console

We hope you’re enjoying the new Google Play Console. With over 350,000 people now using it as their default experience and thousands more providing feedback, the new Play Console is ready to come out of beta. Thank you to everyone who has helped to get it here. This means that the old Play Console will be discontinued starting November 2, 2020. After this date, you’ll be automatically directed to the new Play Console when you log into your account.

If you haven't tried it already, we recommend that you switch to the new version now. To get started, visit play.google.com/console.

The new Play Console’s responsive design means that you can use it across all of your devices. The new navigation makes it easier to find and understand important features, and we’ve added areas to help you better understand your release status, acquisition performance, and guidance on policy changes.

Thanks to your feedback, we’ve already made a lot of improvements:

  • We reorganized the releases area of the navigation. Production is now at the top level, and we've grouped all testing tracks together. Internal app sharing has moved to Setup.
  • Speed and performance on different browsers have increased, and we’ve made UI tweaks such as making text boxes resizable, introducing unread notices for messages, and refining headers on mobile so they use space more efficiently.
  • We launched Inbox, your personalized messaging area featuring helpful information, policy updates, feature recommendations, and more.
  • The new Publishing overview page lets you see what changes are in review. Managed publishing gives you control over your launch by allowing you to decide when approved changes are actually published.
  • Acquisition reports have been completely overhauled to help you understand your performance over time. This includes discontinuing some cohort-based metrics. These will not be available in the new console. If you want to keep a record of this data, please download it from the old Play Console before November 2. Find out more
  • You can still link to your Google Ads account for conversion tracking and remarketing lists, but Google Ads campaign reporting and account notifications will now be available exclusively in Google Ads.
  • You can now search across Play Console, making it easier to find pages and features quickly.
  • And lastly, we announced that later this year, all Play Console users will need to use 2-Step Verification.

To learn more about the new Play Console, you can:

  • Get a high-level overview of what’s new in this blog post.
  • Watch these videos for more in-depth information about the biggest changes.
  • Take a course on the Academy for App Success to become an expert on the new experience.
  • Dive into key features and find supporting information in the new education pages.

Thank you for being a part of our community, and we hope you enjoy the new Play Console!

How useful did you find this blog post?

All developers will get the new Google Play Console on November 2, 2020

Posted by Tom Grinsted, Product Manager, Google Play Console

We hope you’re enjoying the new Google Play Console. With over 350,000 people now using it as their default experience and thousands more providing feedback, the new Play Console is ready to come out of beta. Thank you to everyone who has helped to get it here. This means that the old Play Console will be discontinued starting November 2, 2020. After this date, you’ll be automatically directed to the new Play Console when you log into your account.

If you haven't tried it already, we recommend that you switch to the new version now. To get started, visit play.google.com/console.

The new Play Console’s responsive design means that you can use it across all of your devices. The new navigation makes it easier to find and understand important features, and we’ve added areas to help you better understand your release status, acquisition performance, and guidance on policy changes.

Thanks to your feedback, we’ve already made a lot of improvements:

  • We reorganized the releases area of the navigation. Production is now at the top level, and we've grouped all testing tracks together. Internal app sharing has moved to Setup.
  • Speed and performance on different browsers have increased, and we’ve made UI tweaks such as making text boxes resizable, introducing unread notices for messages, and refining headers on mobile so they use space more efficiently.
  • We launched Inbox, your personalized messaging area featuring helpful information, policy updates, feature recommendations, and more.
  • The new Publishing overview page lets you see what changes are in review. Managed publishing gives you control over your launch by allowing you to decide when approved changes are actually published.
  • Acquisition reports have been completely overhauled to help you understand your performance over time. This includes discontinuing some cohort-based metrics. These will not be available in the new console. If you want to keep a record of this data, please download it from the old Play Console before November 2. Find out more
  • You can still link to your Google Ads account for conversion tracking and remarketing lists, but Google Ads campaign reporting and account notifications will now be available exclusively in Google Ads.
  • You can now search across Play Console, making it easier to find pages and features quickly.
  • And lastly, we announced that later this year, all Play Console users will need to use 2-Step Verification.

To learn more about the new Play Console, you can:

  • Get a high-level overview of what’s new in this blog post.
  • Watch these videos for more in-depth information about the biggest changes.
  • Take a course on the Academy for App Success to become an expert on the new experience.
  • Dive into key features and find supporting information in the new education pages.

Thank you for being a part of our community, and we hope you enjoy the new Play Console!

How useful did you find this blog post?

What’s new for Android game developers: August update

Posted by Greg Hartrell, Head of Product Management, Games on Android & Google Play

Android

Welcome to our latest Android games update and the start of our #11WeeksOfAndroid week focused on games, media and 5G. With all of your interest and feedback in our developer previews, tools and services, we have lots to share in our ongoing efforts to help you better understand your game’s performance, expand your reach to more devices and new audiences, and support your go-to-market with Google Play.

Get the latest updates below and follow us at @AndroidDev for additional games resources and more.

Android tools for mobile game development

  • Android Studio 4.1: We've enhanced the CPU Profiler to expose more data with an improved UI, and we've added memory visualization, startup profiling capabilities, and sampling rate configuration to our Native Memory Profiler. Additionally, you can now open the Android Studio Profilers in a standalone UI. Checkout the System Trace and Native Memory blog posts for more details, and update Android Studio today for better profiling.
  • Android Game Development Extension: For developers building games on multiple platforms with C/C++, we continue to invest in our extension for Visual Studio, including adding support for Visual Studio 2019 and launching standalone Android Studio Profilers. Sign up for the developer preview to integrate with your Visual Studio workflow.
  • Android GPU Inspector: Look into the GPU of Android devices to better understand the bottlenecks and utilize the insights to optimize the graphical performance of your game experiences. Sign up for the developer preview and stay tuned for our upcoming open beta.

Reach more devices and users

  • Android Performance Tuner: Deliver higher quality game experiences to more Android users with less effort. Measure your frame rate performance and graphical fidelity and optimise between them to achieve stable frame rates at scale across the whole Android device ecosystem. Integrate the Unity plug-in or do a custom integration. Learn more in our new session.
  • Android Game SDK: Achievieving smoother frame rates and managing input latency on Android has become even easier! Now that the Game SDK is part of Jetpack, it’s simple to integrate our gaming libraries, such as the Frame Pacing API or the Android Performance Tuner, into your game. Grab the SDK or integrate it now through Jetpack.
  • Play Asset Delivery: Improve your user experience while reducing delivery costs and the size of your game with Play Asset Delivery’s flexible delivery modes, auto-updates and delta patching. Gameloft used PAD to improve user retention, resulting in 10% more new players than with their previous asset delivery system. App bundle format will be required for all new apps starting August 2021. As part of this, we will deprecate legacy APK expansion files (OBBs), making Play Asset Delivery the standard option for publishing games over 150MB.
  • Protect game integrity and fairness with Google Play tools: Protect your game, players, and business by reducing costs fighting monetization and distribution abuse. Some partners have seen up to a 40% decrease in potential hacks and up to a 30% decrease in fraudulent purchase attempts using our integrity and commerce APIs. Express interest in the automatic integrity protection EAP.

Boost your go-to-market

  • Play Games Services - Friends: Now in open beta, help players easily find and play with friends across Android games. Millions of players have a new platform-level friends list that you can access to bootstrap and enhance your in-game friend networks and have your games surfaced in new clusters in the Play Games app. Start using Google Play Games Services - Friends in your game today.
  • Pre-registration: Boost early installs with pre-registration and day 1 auto install. Early experiments show a +20% increase in day 1 installs when using this new feature. We have also optimized our day 1 notifications to pre-registered users. Try out the new pre-registration menu in the Play Developer Console to access this feature.
  • Play store updates: We’re updating games home with a much greater visual experience, showcasing rich game graphics and engaging videos. This provides a more arcade-like browse experience helping users discover new games that match what they like to play. Learn how to optimize your store listing page with the best quality assets.
  • In-app reviews: Give users the ability to leave a review from within your game, without heading back to the app details page, using our new in-app review API, part of the Play Core Library. Learn more in our recent blog post.

Check out d.android.com/games to learn about these tools and more, and stay up to date by signing up for the games quarterly newsletter.


How useful did you find this blog post?

Leverage the In-App Review API for your Google Play reviews

Posted by Scott Lin, Product Manager, Google Play

illustration of girl with starred review

For many developers, ratings and reviews are an important touchpoint with users. Millions of reviews are left on Google Play every day, offering developers valuable insight on what users love and what they want improved. Users also rely on ratings and reviews to help them decide which apps and games are right for them.

Over the past two years, Google Play has launched various features to make it easier for users to leave reviews, as well as for developers to interact and respond to them. For example, users are now able to leave reviews from the Google Play homepage. We also launched the Reviews page under My Apps & Games, which gives users a centralized place to leave and manage reviews.

But one of the most requested features from developers has been to give users the ability to leave a review from within the app, without heading back to the App Details page. So today, we’re pleased to launch the new in-app review API to address that need.

Ask for a review at just the right time

The API lets developers choose when to prompt users to write reviews within the app experience. We believe the best time to prompt your users is when they have used the app enough to be able to provide thorough and useful feedback. However, be sure not to interrupt them in the middle of a task or when their attention is needed, as the review flow will take over the action on the screen.

User ratings for app image

Users can now give ratings and reviews within your app.

The in-app review API supports both public and private reviews for when your app is in beta.

The review API is part of the Play Core Library, which is distributed for Java/Kotlin, C++, and Unity. It offers a lightweight API that allows apps to request a review and launch the review flow without users leaving the app.

The integration consists of four main steps:

  1. Define the conditions and best place to ask for a review
  2. Request the review flow to the API
  3. Launch the review at an appropriate moment
  4. Continue the flow after the review is completed

Whether the user leaves a review or not, the app must continue without altering the user flow. The in-app review API is designed to be seamless for users.

You can see the in-app review API in action in our newly published sample, which showcases calling the API through the Play Core Kotlin extensions (KTX) library, alongside other Play Core APIs such as in-app updates and on-demand feature modules installation.

Gathering the best feedback

The API will make it much easier for users to share valuable insights about your app.

Here’s what some of our partners said during the early-access program:

Calm logo
“It was quick and easy to integrate with the new In-App Review API changes, and we saw an almost immediate increase in positive ratings and reviews after releasing those changes.”

- Chris Scoville, Engineering Manager at Calm



Duolingo logo
“The in-app review API allows our customers to rate without leaving the application. Our 5-star ratings since implementing the API has increased by 4x.”

- Nathaniel Khuana, Technical Architect, Tokopedia



Traveloka logo
"We saw our all-time highest rating just a week after we implemented in-app reviews."

- Welly Chandra, Associate Product Manager at Traveloka







Because the best feedback is honest and unbiased, we designed the API to be self-contained and not require additional prompting other than to invoke the API. We’ve also placed cap limits to ensure that users won’t be prompted excessively should they choose not to leave a review.

We encourage developers to explore integrating the in-app review API as it will unlock the type of feedback that only your dedicated users can provide. And remember, once you receive those reviews, there are a multitude of ratings and reviews tools available to you on the Google Play Console to help you analyze the reviews and respond to users' concerns directly.

How useful did you find this blog post?

Leverage the In-App Review API for your Google Play reviews

Posted by Scott Lin, Product Manager, Google Play

illustration of girl with starred review

For many developers, ratings and reviews are an important touchpoint with users. Millions of reviews are left on Google Play every day, offering developers valuable insight on what users love and what they want improved. Users also rely on ratings and reviews to help them decide which apps and games are right for them.

Over the past two years, Google Play has launched various features to make it easier for users to leave reviews, as well as for developers to interact and respond to them. For example, users are now able to leave reviews from the Google Play homepage. We also launched the Reviews page under My Apps & Games, which gives users a centralized place to leave and manage reviews.

But one of the most requested features from developers has been to give users the ability to leave a review from within the app, without heading back to the App Details page. So today, we’re pleased to launch the new in-app review API to address that need.

Ask for a review at just the right time

The API lets developers choose when to prompt users to write reviews within the app experience. We believe the best time to prompt your users is when they have used the app enough to be able to provide thorough and useful feedback. However, be sure not to interrupt them in the middle of a task or when their attention is needed, as the review flow will take over the action on the screen.

User ratings for app image

Users can now give ratings and reviews within your app.

The in-app review API supports both public and private reviews for when your app is in beta.

The review API is part of the Play Core Library, which is distributed for Java/Kotlin, C++, and Unity. It offers a lightweight API that allows apps to request a review and launch the review flow without users leaving the app.

The integration consists of four main steps:

  1. Define the conditions and best place to ask for a review
  2. Request the review flow to the API
  3. Launch the review at an appropriate moment
  4. Continue the flow after the review is completed

Whether the user leaves a review or not, the app must continue without altering the user flow. The in-app review API is designed to be seamless for users.

You can see the in-app review API in action in our newly published sample, which showcases calling the API through the Play Core Kotlin extensions (KTX) library, alongside other Play Core APIs such as in-app updates and on-demand feature modules installation.

Gathering the best feedback

The API will make it much easier for users to share valuable insights about your app.

Here’s what some of our partners said during the early-access program:

Calm logo
“It was quick and easy to integrate with the new In-App Review API changes, and we saw an almost immediate increase in positive ratings and reviews after releasing those changes.”

- Chris Scoville, Engineering Manager at Calm



Duolingo logo
“The in-app review API allows our customers to rate without leaving the application. Our 5-star ratings since implementing the API has increased by 4x.”

- Nathaniel Khuana, Technical Architect, Tokopedia



Traveloka logo
"We saw our all-time highest rating just a week after we implemented in-app reviews."

- Welly Chandra, Associate Product Manager at Traveloka







Because the best feedback is honest and unbiased, we designed the API to be self-contained and not require additional prompting other than to invoke the API. We’ve also placed cap limits to ensure that users won’t be prompted excessively should they choose not to leave a review.

We encourage developers to explore integrating the in-app review API as it will unlock the type of feedback that only your dedicated users can provide. And remember, once you receive those reviews, there are a multitude of ratings and reviews tools available to you on the Google Play Console to help you analyze the reviews and respond to users' concerns directly.

How useful did you find this blog post?

Recent Android App Bundle improvements and timeline for new apps on Google Play

Posted by Posted by Dom Elliott and Yafit Becher, Product Managers at Google Play

Google
Android

In a little over two years, the Android App Bundle has become the gold standard for publishing on Google Play. Over 600,000 apps and games currently use the app bundle in production, representing over 40% of all releases on Google Play. App bundles are used by 50% of the top developers on Google Play — such as Adobe, which used app bundles to reduce the size of Adobe Acrobat Reader by 20%.

We recently launched Play Asset Delivery (PAD), bringing the great benefits of app bundles to games and allowing developers to improve the user experience while cutting delivery costs and reducing the size of their games. Gameloft used PAD to improve user retention, resulting in 10% more new players than with their previous asset delivery system.

For those of you making the switch, we’ve published some FAQs on Play App Signing — required for app bundles — as well as guidance on how to test your app bundle. Read on to find out more about the recent improvements we’ve made to developing, testing, and publishing with app bundles.

Play Feature Delivery

The app bundle enables modular app development using dynamic feature modules with a range of customizable delivery options. It’s now possible to shrink resources in dynamic feature modules as well as your base module when building modular apps. This long-requested feature can result in significantly greater size reduction of your apps. The feature is available from Android Studio 4.2, currently in Canary, under the experimental flag: android.experimental.enableNewResourceShrinker=true.

By default, install time modules are now automatically fused when app bundles are processed into distribution APKs (starting in bundletool 1.0.0). This means you can separate your app into modules during development while reducing the number of APKs distributed to each device, which will speed up your app’s download and installation. You can choose to set a “removable flag” for install-time modules to prevent fusing, which allows you to uninstall a module on the device after it’s been used. It’s a good idea to remove large modules once they’re no longer needed — reducing the size of your app can make it less likely to be uninstalled.

Feature-to-feature dependency is now stable in Android Studio 4.0, so you can specify that a dynamic feature module depends on another feature module. Being able to define this relationship ensures that your app has the required modules to unlock additional functionality, resulting in fewer requests and easier modularization of your app.

We know that it is critical for you to test your app delivery and get the same experience as your users would in the wild. Internal app sharing lets you upload test builds to Play and get a sharable link to download your app. When downloading your app from this link, you get an identical binary as would be served to users once your app is released to Play.

Play Asset Delivery

Play Asset Delivery extends the app bundle format, allowing you to package up to 2GB of game assets alongside the binary in a single artifact published on Google Play. PAD lets games larger than 150MB replace the legacy expansion files (OBBs) and rely on Play to keep assets up to date, just like you do with your game binary. It also takes care of compression and delta patching, minimizing the size of the download and getting your game to update faster.

Google

The contents of an Android App Bundle with one base module, two dynamic feature modules, and two asset packs.

You can then choose one of three delivery modes, depending on when you want those assets to be served to users: upfront, as part of the initial game installation; on-demand, so assets will be delivered only upon request; or fast-follow, which will trigger an additional download immediately after the game installation completes, independently of the user opening the app. Fast-follow lets you minimize time to first interaction while getting assets to users as quickly as possible.

In the coming months, we’ll release texture compression format targeting, which will allow you to include multiple texture compression format assets and rely on us to deliver them to the most advanced format supported by the requesting device.

Learn more in this session from our Game Developer Summit and check out the documentation to see integration options for Unity, Unreal Engine, Gradle, Native, and Java support.

Google Play’s best-in-class distribution

Google Play delivers billions of apps, games, updates, and dynamic feature modules every month to Android users on thousands of device types around the world. We invest a lot of time and energy into making sure your content is delivered to users as seamlessly and efficiently as possible while hiding the complexity from the user experience.

For example, we recently upgraded the download service Google Play uses. This change alone has sped up the installation of app bundle apps by an average of 6% and increased install success globally by 1%, resulting in millions more new installs for developers every week.

We’re also rolling out multiple improvements to dynamic feature module distribution, such as allowing them to be installed when your app is VISIBLE or higher, lowering the free storage threshold that triggers insufficient storage errors, and removing user confirmation for large dynamic features over Wi-Fi. This alone has resulted in 12% more successful deferred module downloads. Apps using dynamic features will benefit from these changes automatically.

Requirement for new apps in the second half of 2021

We’re continuing to make app bundles a better publishing format than APKs on Google Play. For example, the new app bundle explorer lets you manage all your app bundles in one place. You can download and attest the exact APKs that Play generates for delivery, as well as a signed, universal APK (a single, installable APK that includes all code and resources needed for supported devices) that you can use on other distribution channels.

We’ve been thrilled to see the app bundle embraced by the app and game ecosystem, and we’re excited to continue to improve it. As we announced in the Android 11 event, to help us invest in future improvements, we intend to require new apps and games to publish with the Android App Bundle on Google Play in the second half of 2021. In the same timeframe, we will deprecate legacy APK expansion files (OBBs), making Play Asset Delivery the standard option for publishing games over 150MB. We will also require instant experiences to be published via instant-enabled app bundles, deprecating the legacy instant app ZIP format.

Thank you to everyone who has already made the switch to the Android App Bundle, and a special thanks to those of you who’ve shared your feedback. Your comments help us shape the future of app bundles and improve the technology for everyone, so please continue to let us know what you think.


How useful did you find this blog post?

The winners of the Google Play Indie Games Festival are…

Posted by Leticia Lago, Head of Developer Marketing, EMEA

We wrapped up the Indie Games Festivals in Europe, Japan, and South Korea. You can now check out the three winners and Top 10 finalists from each of the contests.

Indie

The Google Play Indie Games Festival celebrates the creativity and innovation that small games developers bring to the Play Store.

We shortlisted 20 finalists for each contest after receiving hundreds of submissions. The finalists were to showcase their art at events in Warsaw, Tokyo, and Seoul. However, this year’s unprecedented events saw the finalists presenting to jury members online. The juries then deliberated to select the winners.

Winning developers receive prize packages designed to help them grow their business on Android and Google Play. Each package offers promotions on the Google Play Store, consultations with members of the Google Play team, Google hardware, promotion campaigns, and more.

Join us in congratulating the developers and try out their games.

Europe

Image

(In alphabetical order)

Cookies Must Die by Rebel Twins (Poland)

inbento by Afterburn (Poland)

The White Door by Rusty Lake (Netherlands)

The other finalist to make the Top 10 as selected by the jury members are, in alphabetical order:

top

60 Parsecs! by Robot Gentleman (Poland)

Alien Escape by KORION Interactive (Germany)

Alt-Frequencies by Accidental Queens (France)

Doors: Awakening by Big Loop Studios (Bulgaria)

My Diggy Dog 2 by King Bird Games (Russia)

Traffix by WebAvenue Unipessoal Lda (Portugal)

Void Tyrant by Quite Fresh Ltd. (United Kingdom)


Japan

winners

(In alphabetical order)

GIGAFALL by Shiki Game Studio

METBOY! by REBUILD GAMES

Wasurenaide, otona ni natte mo by GAGEX Co.,Ltd.

The other final list to make the Top 10 as selected by the jury members are, in alphabetical order:

top
Boku to hakubutsukan by oridio Inc.

GummyShooter by simatten

Home Fighter by hap Inc.

MonsterTrader by Mitsuhiro Okada

Snowman Story by Odencat

World for Two by Seventh rank

Zelle by Odencat


South Korea

winners

(In alphabetical order)

Heroes Restaurant by Team Tapas

Magic Survival by LEME

Project Mars by Moontm

The other finalist to make the Top 10 as selected by the online audience and the jury are, in alphabetical order:

Top

CAT THE DJ by CATSBY STUDIO

Dust by I-eye studio

Extreme Football by 9M Interactive

Great Sword by olivecrow

QV by izzle

Sand Shark: The Boy and The Sea by GABANGMAN STUDIO

Sword Master Story by CodeCAT

Congratulations to all the winners! And thanks to everyone who entered.



How useful did you find this blog post?

Preparing your Gradle build for package visibility in Android 11


Posted by David Winer, Product Manager

illustration of mobile device with lock
One of the central themes for Android 11 has been protecting user privacy. On Android 10 and earlier, you could query the full set of installed apps using methods like queryIntentActivities(). Often, however, this approach provides much more access than most apps need to implement their functionality. To better protect user privacy, we updated how apps view and interact with other installed apps on Android 11.
To provide better accountability for access to installed apps, apps targeting Android 11 (API level 30) will see a filtered list of installed apps by default. The new <queries> element in your app or library’s Android manifest allows you to describe which other apps you might need to interact with. For more information about this change, check out our Medium post on package visibility in Android 11.

Android Studio and Gradle support

If you are using Android Gradle plugin 4.1+, your tools should work with the new <queries> declaration. However, older versions of the Android Gradle plugin are not aware of this new element. If you add the <queries> element or if you start relying on a library or SDK that supports targeting Android 11, you may encounter manifest merging errors. For example, when building your app you may see the following error in the Build Output Window:
Android resource linking failed /Users/sample/AndroidStudioProjects/MyApp/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:18: error: unexpected element <queries> found in <manifest>
Alternatively, you may see an error in the Build Output Window that directs you to the Manifest merger logs:
Manifest merger failed with multiple errors, see logs
Upon expanding the Merged Manifest view you would then see an additional error:
Error: Missing 'package' key attribute on element package

Android Gradle plugin fixes

The best solution to deal with these errors is to upgrade to Android Gradle plugin 4.1 Beta.
We know that not everyone is ready to upgrade to the latest version, though, and you may be relying on old versions of Gradle or libraries that aren’t compatible with 4.1.
So, today we issued a set of dot releases for the Android Gradle plugin that are compatible with <queries>:
For example, if you are currently using Android Gradle plugin version 4.0.0, you can upgrade the version in your project-level build.gradle file:
 buildscript {

    repositories {
        google()
        jcenter()
    }

    dependencies {
        // classpath 'com.android.tools.build:gradle:4.0.0'
        classpath 'com.android.tools.build:gradle:4.0.1'
    }
}

For more information on this new feature in Android 11, check out the package visibility documentation and the Android Gradle plugin release notes.

Preparing your Gradle build for package visibility in Android 11


Posted by David Winer, Product Manager

illustration of mobile device with lock
One of the central themes for Android 11 has been protecting user privacy. On Android 10 and earlier, you could query the full set of installed apps using methods like queryIntentActivities(). Often, however, this approach provides much more access than most apps need to implement their functionality. To better protect user privacy, we updated how apps view and interact with other installed apps on Android 11.
To provide better accountability for access to installed apps, apps targeting Android 11 (API level 30) will see a filtered list of installed apps by default. The new <queries> element in your app or library’s Android manifest allows you to describe which other apps you might need to interact with. For more information about this change, check out our Medium post on package visibility in Android 11.

Android Studio and Gradle support

If you are using Android Gradle plugin 4.1+, your tools should work with the new <queries> declaration. However, older versions of the Android Gradle plugin are not aware of this new element. If you add the <queries> element or if you start relying on a library or SDK that supports targeting Android 11, you may encounter manifest merging errors. For example, when building your app you may see the following error in the Build Output Window:
Android resource linking failed /Users/sample/AndroidStudioProjects/MyApp/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:18: error: unexpected element <queries> found in <manifest>
Alternatively, you may see an error in the Build Output Window that directs you to the Manifest merger logs:
Manifest merger failed with multiple errors, see logs
Upon expanding the Merged Manifest view you would then see an additional error:
Error: Missing 'package' key attribute on element package

Android Gradle plugin fixes

The best solution to deal with these errors is to upgrade to Android Gradle plugin 4.1 Beta.
We know that not everyone is ready to upgrade to the latest version, though, and you may be relying on old versions of Gradle or libraries that aren’t compatible with 4.1.
So, today we issued a set of dot releases for the Android Gradle plugin that are compatible with <queries>:
For example, if you are currently using Android Gradle plugin version 4.0.0, you can upgrade the version in your project-level build.gradle file:
 buildscript {

    repositories {
        google()
        jcenter()
    }

    dependencies {
        // classpath 'com.android.tools.build:gradle:4.0.0'
        classpath 'com.android.tools.build:gradle:4.0.1'
    }
}

For more information on this new feature in Android 11, check out the package visibility documentation and the Android Gradle plugin release notes.