schwabe / ics-openvpn

OpenVPN for Android
3.31k stars 1.2k forks source link

specialUse is incompatible with attribute foregroundServiceType #1607

Closed syphyr closed 1 year ago

syphyr commented 1 year ago

To make issues more manageable, I would appreciate it if you fill out the following details as applicable:

General information

  1. Android Version: Nougat
  2. Custom ROM: LineageOS 14.1
  3. Device: T813
  4. Version of the app: v0.7.44-1-g82695133

Description of the issue

Build failure on Master branch from 6871a5a4734890e7b5e01040a38fb34b0a05a9fc

Log (if applicable)

Execution failed for task ':main:processSkeletonReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     /media/delta/T5/android/openvpn/ics-openvpn/main/build/intermediates/packaged_manifests/skeletonRelease/universal/AndroidManifest.xml:70: error: 'specialUse' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4].
     error: failed processing manifest.

Configuration file

NA
schwabe commented 1 year ago

Yes the commited code is already for upsidedowncake api. It currently does not build with lower version APIs anymore for that reason.

syphyr commented 1 year ago

What is the new minimum api?

schwabe commented 1 year ago

mimimum API stays the same, just the target API I am currently testing with is upsidedowncake (Android 14)