-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] error: 'shortService' is incompatible with attribute foregroundServiceType #3673
Comments
Hello, after using the new feature of Android 14 "Android:foregroundServiceType="shortService"", we found that the tag cannot be recognized. |
I added this property to our test case and I can't replicate an issue. Can you confirm my test change is accurate to your change? |
|
I may know the reason. Maybe our environment variable points to the Android 13 SDK. I'll give it a try. Thanks. |
Okay, I'll close this with the update to our test suite. You can test a bleeding edge build from here: https://github.com/iBotPeaches/Apktool/actions/runs/10451894924 |
@iBotPeaches Hello, does Apktool use the aapt2 tool? How did you find the location of this tool? I found that the problem still exists: |
We don't find it. It's included within the tool. |
|
Thats why I asked you to try a bleeding edge Apktool - it has a newer aapt2 inside - https://github.com/iBotPeaches/Apktool/actions/runs/10451894924 |
@iBotPeaches I used the version Apktool v2.9.2-64-62ad27a5-SNAPSHOT you provided and still reported the same error. hope you can help me. |
I can no longer help as I cannot replicate. Please contribute a failing test case and I can investigate further. |
Information
v2.9.3
)java11
)Stacktrace/Logcat
error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4].
Questions to ask before submission
apktool d
,apktool b
without changing anything?yes
yes
yes
The text was updated successfully, but these errors were encountered: