googlesamples / googlesamples/mlkit

[Bug report] Summarization is always failed on S25+

Open
#1,002 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
On my S25+, SM-936U1 Image description and Rewriting, Proofreading works well. But each time when I try Summarization feature I have an error.

**To Reproduce**
Any text is given both in Java and Kotlin modes. Each time I see an eroor
Failed to run inference...ErrorCode 15. Couldn't generate a responce due to policy check failure. Please, try a different input.... AICore failed with error type 2-INFERENCE-ERROR and error code 15-RESPONCE_GENERATION_ERROR: inference failed.

**Expected behavior**
Summary should be generated. But I have the same error for different length neutral texts with different app settings for Summarization.

**SDK Info:**
- SDK Name & Version [e.g. com.google.mlkit:face-detection:16.1.3]

**Smartphone:**
S25+, SM-936U1
- Device/Simulator OS: Android 16

**Development Environment:**
*(For Android issue feel free to skip this section)*
apk was built from latest sources in Android Studio 2025.1.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.