Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Android Gradle: Cannot read packageName from ... gradleOut/src/main/AndroidManifest.xml

Discussion in '2018.1 Beta' started by scheidtventureestate, Apr 1, 2018.

  1. scheidtventureestate

    scheidtventureestate

    Joined:
    Nov 28, 2017
    Posts:
    33
    I have a mobile projects that compiles fine with LTS (2017.4.0f1). When I run it in the Beta (2018.1b), I get a Cradle build failure: Cannot read packageName

    Screen Shot 2018-04-01 at 18.18.39.png

    Code (Boo):
    1. CommandInvokationFailure: Gradle build failed.
    2. /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleDebug"
    3.  
    4. stderr[
    5.  
    6. FAILURE: Build failed with an exception.
    7.  
    8. * What went wrong:
    9. Cannot read packageName from /Users/worker/development/THE PROJECT/Temp/gradleOut/src/main/AndroidManifest.xml
    The Project uses nothing fancy regarding special mobile<->native assets:
    • Firebase (Google Play Services)
    • Native Plugins (Promoted by Unity)
    The mentioned AndroidManifest.xml looks fine to me:
    Code (xml):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="${applicationId}" android:versionCode="1" android:versionName="1.0" android:installLocation="preferExternal">
    3.   <application android:label="@string/app_name" android:icon="@drawable/app_icon" android:isGame="false" android:banner="@drawable/app_banner" android:roundIcon="@drawable/app_icon_round">
    4.     <!-- The MessagingUnityPlayerActivity is a class that extends
    5.          UnityPlayerActivity to work around a known issue when receiving
    6.          notification data payloads in the background. -->
    7.     <activity android:name="com.google.firebase.MessagingUnityPlayerActivity" android:label="@string/app_name" android:icon="@drawable/app_icon" android:screenOrientation="portrait" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false">
    8.       <intent-filter>
    9.         <action android:name="android.intent.action.MAIN" />
    10.         <category android:name="android.intent.category.LAUNCHER" />
    11.       </intent-filter>
    12.       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    13.     </activity>
    14.     <service android:name="com.google.firebase.messaging.MessageForwardingService" android:exported="false" />
    15.     <meta-data android:name="unity.build-id" android:value="b0cf45ad-9ac3-45f9-a1c5-2b12f95a43fe" />
    16.     <meta-data android:name="unity.splash-mode" android:value="0" />
    17.     <meta-data android:name="unity.splash-enable" android:value="True" />
    18.   </application>
    19.   <uses-feature android:glEsVersion="0x00020000" />
    20.   <uses-permission android:name="android.permission.INTERNET" />
    21.   <uses-permission android:name="android.permission.VIBRATE" />
    22.   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    23.   <uses-feature android:name="android.hardware.location.gps" android:required="false" />
    24.   <uses-feature android:name="android.hardware.location" android:required="false" />
    25.   <uses-permission android:name="android.permission.CAMERA" />
    26.   <uses-feature android:name="android.hardware.camera" android:required="false" />
    27.   <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
    28.   <uses-feature android:name="android.hardware.camera.front" android:required="false" />
    29.   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
    30.   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
    31.   <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="false" />
    32.   <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    33.   <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
    34.   <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
    35. </manifest>
    Here the Complete Stack Trace:
    Code (Boo):
    1. CommandInvokationFailure: Gradle build failed.
    2. /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleDebug"
    3.  
    4. stderr[
    5.  
    6. FAILURE: Build failed with an exception.
    7.  
    8. * What went wrong:
    9. Cannot read packageName from /Users/worker/development/THE Projects BETA/THE Projects/Temp/gradleOut/src/main/AndroidManifest.xml
    10.  
    11. * Try:
    12. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    13.  
    14. BUILD FAILED in 4s
    15. ]
    16. stdout[
    17. NDK is missing a "platforms" directory.
    18. If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/worker/Library/Android/sdk/ndk-bundle.
    19. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
    20.  
    21. NDK is missing a "platforms" directory.
    22. If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/worker/Library/Android/sdk/ndk-bundle.
    23. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
    24.  
    25. The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
    26. The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
    27. The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
    28. NDK is missing a "platforms" directory.
    29. If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/worker/Library/Android/sdk/ndk-bundle.
    30. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
    31.  
    32. NDK is missing a "platforms" directory.
    33. If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/worker/Library/Android/sdk/ndk-bundle.
    34. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
    35.  
    36. NDK is missing a "platforms" directory.
    37. If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/worker/Library/Android/sdk/ndk-bundle.
    38. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
    39.  
    40. :preBuild UP-TO-DATE
    41. :preDebugBuild UP-TO-DATE
    42. :checkDebugManifest
    43. :preReleaseBuild UP-TO-DATE
    44. :prepareComAndroidSupportExifinterface2601Library
    45. :prepareComAndroidSupportSupportCompat2601Library
    46. :prepareComAndroidSupportSupportCoreUi2601Library
    47. :prepareComAndroidSupportSupportCoreUtils2601Library
    48. :prepareComAndroidSupportSupportFragment2601Library
    49. :prepareComAndroidSupportSupportMediaCompat2601Library
    50. :prepareComAndroidSupportSupportV42601Library
    51. :prepareComGoogleAndroidGmsPlayServicesAppinvite1180Library
    52. :prepareComGoogleAndroidGmsPlayServicesAppinviteLicense1180Library
    53. :prepareComGoogleAndroidGmsPlayServicesBase1180Library
    54. :prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library
    55. :prepareComGoogleAndroidGmsPlayServicesBasement1180Library
    56. :prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
    57. :prepareComGoogleAndroidGmsPlayServicesTasks1180Library
    58. :prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library
    59. :prepareComGoogleFirebaseFirebaseAnalytics1180Library
    60. :prepareComGoogleFirebaseFirebaseAnalyticsImpl1180Library
    61. :prepareComGoogleFirebaseFirebaseAnalyticsImplLicense1180Library
    62. :prepareComGoogleFirebaseFirebaseAnalyticsLicense1180Library
    63. :prepareComGoogleFirebaseFirebaseAnalyticsUnity450Library
    64. :prepareComGoogleFirebaseFirebaseAppUnity450Library
    65. :prepareComGoogleFirebaseFirebaseAuth1180Library
    66. :prepareComGoogleFirebaseFirebaseAuthLicense1180Library
    67. :prepareComGoogleFirebaseFirebaseAuthUnity450Library
    68. :prepareComGoogleFirebaseFirebaseCommon1180Library
    69. :prepareComGoogleFirebaseFirebaseCommonLicense1180Library
    70. :prepareComGoogleFirebaseFirebaseConfig1180Library
    71. :prepareComGoogleFirebaseFirebaseConfigLicense1180Library
    72. :prepareComGoogleFirebaseFirebaseConfigUnity450Library
    73. :prepareComGoogleFirebaseFirebaseCore1180Library
    74. :prepareComGoogleFirebaseFirebaseDynamicLinks1180Library
    75. :prepareComGoogleFirebaseFirebaseDynamicLinksLicense1180Library
    76. :prepareComGoogleFirebaseFirebaseDynamicLinksUnity450Library
    77. :prepareComGoogleFirebaseFirebaseIid1180Library
    78. :prepareComGoogleFirebaseFirebaseIidLicense1180Library
    79. :prepareComGoogleFirebaseFirebaseInstanceIdUnity450Library
    80. :prepareComGoogleFirebaseFirebaseInvitesUnity450Library
    81. :prepareComGoogleFirebaseFirebaseMessaging1180Library
    82. :prepareComGoogleFirebaseFirebaseMessagingLicense1180Library
    83. :prepareComGoogleFirebaseFirebaseMessagingUnity450Library
    84. :prepareComGoogleFirebaseFirebaseStorage1180Library
    85. :prepareComGoogleFirebaseFirebaseStorageCommon1180Library
    86. :prepareComGoogleFirebaseFirebaseStorageCommonLicense1180Library
    87. :prepareComGoogleFirebaseFirebaseStorageLicense1180Library
    88. :prepareComGoogleFirebaseFirebaseStorageUnity450Library
    89. :prepareVuforiaWrapperLibrary
    90. :Firebase:preBuild UP-TO-DATE
    91. :Firebase:preReleaseBuild UP-TO-DATE
    92. :Firebase:checkReleaseManifest
    93. :Firebase:prepareReleaseDependencies
    94. :Firebase:compileReleaseAidl
    95. :Firebase:compileReleaseNdk NO-SOURCE
    96. :Firebase:compileLint
    97. :Firebase:copyReleaseLint NO-SOURCE
    98. :Firebase:mergeReleaseShaders
    99. :Firebase:compileReleaseShaders
    100. :Firebase:generateReleaseAssets
    101. :Firebase:mergeReleaseAssets
    102. :Firebase:mergeReleaseProguardFiles UP-TO-DATE
    103. :Firebase:packageReleaseRenderscript NO-SOURCE
    104. :Firebase:compileReleaseRenderscript
    105. :Firebase:generateReleaseResValues
    106. :Firebase:generateReleaseResources
    107. :Firebase:packageReleaseResources
    108. :Firebase:processReleaseManifest
    109. :Firebase:generateReleaseBuildConfig
    110. :Firebase:processReleaseResources
    111. :Firebase:generateReleaseSources
    112. :Firebase:incrementalReleaseJavaCompilationSafeguard
    113. :Firebase:javaPreCompileRelease
    114. :Firebase:compileReleaseJavaWithJavac
    115. :Firebase:processReleaseJavaRes NO-SOURCE
    116. :Firebase:transformResourcesWithMergeJavaResForRelease
    117. :Firebase:transformClassesAndResourcesWithSyncLibJarsForRelease
    118. :Firebase:mergeReleaseJniLibFolders
    119. :Firebase:transformNativeLibsWithMergeJniLibsForRelease
    120. :Firebase:transformNativeLibsWithSyncJniLibsForRelease
    121. :Firebase:bundleRelease
    122. :common_lib:preBuild UP-TO-DATE
    123. :common_lib:preReleaseBuild UP-TO-DATE
    124. :common_lib:checkReleaseManifest
    125. :common_lib:prepareReleaseDependencies
    126. :common_lib:compileReleaseAidl
    127. :common_lib:compileReleaseNdk NO-SOURCE
    128. :common_lib:compileLint
    129. :common_lib:copyReleaseLint NO-SOURCE
    130. :common_lib:mergeReleaseShaders
    131. :common_lib:compileReleaseShaders
    132. :common_lib:generateReleaseAssets
    133. :common_lib:mergeReleaseAssets
    134. :common_lib:mergeReleaseProguardFiles UP-TO-DATE
    135. :common_lib:packageReleaseRenderscript NO-SOURCE
    136. :common_lib:compileReleaseRenderscript
    137. :common_lib:generateReleaseResValues
    138. :common_lib:generateReleaseResources
    139. :common_lib:packageReleaseResources
    140. :common_lib:processReleaseManifest
    141. :common_lib:generateReleaseBuildConfig
    142. :common_lib:processReleaseResources
    143. :common_lib:generateReleaseSources
    144. :common_lib:incrementalReleaseJavaCompilationSafeguard
    145. :common_lib:javaPreCompileRelease
    146. :common_lib:compileReleaseJavaWithJavac
    147. :common_lib:processReleaseJavaRes NO-SOURCE
    148. :common_lib:transformResourcesWithMergeJavaResForRelease
    149. :common_lib:transformClassesAndResourcesWithSyncLibJarsForRelease
    150. :common_lib:mergeReleaseJniLibFolders
    151. :common_lib:transformNativeLibsWithMergeJniLibsForRelease
    152. :common_lib:transformNativeLibsWithSyncJniLibsForRelease
    153. :common_lib:bundleRelease
    154. :native_plugins_lib:preBuild UP-TO-DATE
    155. :native_plugins_lib:preReleaseBuild UP-TO-DATE
    156. :native_plugins_lib:checkReleaseManifest
    157. :native_plugins_lib:prepareReleaseDependencies
    158. :native_plugins_lib:compileReleaseAidl
    159. :native_plugins_lib:compileReleaseNdk NO-SOURCE
    160. :native_plugins_lib:compileLint
    161. :native_plugins_lib:copyReleaseLint NO-SOURCE
    162. :native_plugins_lib:mergeReleaseShaders
    163. :native_plugins_lib:compileReleaseShaders
    164. :native_plugins_lib:generateReleaseAssets
    165. :native_plugins_lib:mergeReleaseAssets
    166. :native_plugins_lib:mergeReleaseProguardFiles UP-TO-DATE
    167. :native_plugins_lib:packageReleaseRenderscript NO-SOURCE
    168. :native_plugins_lib:compileReleaseRenderscript
    169. :native_plugins_lib:generateReleaseResValues
    170. :native_plugins_lib:generateReleaseResources
    171. :native_plugins_lib:packageReleaseResources
    172. :native_plugins_lib:processReleaseManifest
    173. /Users/worker/development/THE Projects BETA/THE Projects/Temp/gradleOut/native_plugins_lib/AndroidManifest.xml:37:3-63 Warning:
    174.     Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:37:3-63 duplicated with element declared at AndroidManifest.xml:31:3-63
    175. /Users/worker/development/THE Projects BETA/THE Projects/Temp/gradleOut/native_plugins_lib/AndroidManifest.xml:38:3-83 Warning:
    176.     Element uses-feature#android.hardware.camera at AndroidManifest.xml:38:3-83 duplicated with element declared at AndroidManifest.xml:32:3-83
    177. /Users/worker/development/THE Projects BETA/THE Projects/Temp/gradleOut/native_plugins_lib/AndroidManifest.xml:39:3-93 Warning:
    178.     Element uses-feature#android.hardware.camera.autofocus at AndroidManifest.xml:39:3-93 duplicated with element declared at AndroidManifest.xml:33:3-93
    179. :native_plugins_lib:generateReleaseBuildConfig
    180. :native_plugins_lib:processReleaseResources
    181. :native_plugins_lib:generateReleaseSources
    182. :native_plugins_lib:incrementalReleaseJavaCompilationSafeguard
    183. :native_plugins_lib:javaPreCompileRelease
    184. :native_plugins_lib:compileReleaseJavaWithJavac
    185. :native_plugins_lib:processReleaseJavaRes NO-SOURCE
    186. :native_plugins_lib:transformResourcesWithMergeJavaResForRelease
    187. :native_plugins_lib:transformClassesAndResourcesWithSyncLibJarsForRelease
    188. :native_plugins_lib:mergeReleaseJniLibFolders
    189. :native_plugins_lib:transformNativeLibsWithMergeJniLibsForRelease
    190. :native_plugins_lib:transformNativeLibsWithSyncJniLibsForRelease
    191. :native_plugins_lib:bundleRelease
    192. :voxelbusters_utility_lib:preBuild UP-TO-DATE
    193. :voxelbusters_utility_lib:preReleaseBuild UP-TO-DATE
    194. :voxelbusters_utility_lib:checkReleaseManifest
    195. :voxelbusters_utility_lib:prepareReleaseDependencies
    196. :voxelbusters_utility_lib:compileReleaseAidl
    197. :voxelbusters_utility_lib:compileReleaseNdk NO-SOURCE
    198. :voxelbusters_utility_lib:compileLint
    199. :voxelbusters_utility_lib:copyReleaseLint NO-SOURCE
    200. :voxelbusters_utility_lib:mergeReleaseShaders
    201. :voxelbusters_utility_lib:compileReleaseShaders
    202. :voxelbusters_utility_lib:generateReleaseAssets
    203. :voxelbusters_utility_lib:mergeReleaseAssets
    204. :voxelbusters_utility_lib:mergeReleaseProguardFiles UP-TO-DATE
    205. :voxelbusters_utility_lib:packageReleaseRenderscript NO-SOURCE
    206. :voxelbusters_utility_lib:compileReleaseRenderscript
    207. :voxelbusters_utility_lib:generateReleaseResValues
    208. :voxelbusters_utility_lib:generateReleaseResources
    209. :voxelbusters_utility_lib:packageReleaseResources
    210. :voxelbusters_utility_lib:processReleaseManifest
    211. :voxelbusters_utility_lib:generateReleaseBuildConfig
    212. :voxelbusters_utility_lib:processReleaseResources
    213. :voxelbusters_utility_lib:generateReleaseSources
    214. :voxelbusters_utility_lib:incrementalReleaseJavaCompilationSafeguard
    215. :voxelbusters_utility_lib:javaPreCompileRelease
    216. :voxelbusters_utility_lib:compileReleaseJavaWithJavac
    217. :voxelbusters_utility_lib:processReleaseJavaRes NO-SOURCE
    218. :voxelbusters_utility_lib:transformResourcesWithMergeJavaResForRelease
    219. :voxelbusters_utility_lib:transformClassesAndResourcesWithSyncLibJarsForRelease
    220. :voxelbusters_utility_lib:mergeReleaseJniLibFolders
    221. :voxelbusters_utility_lib:transformNativeLibsWithMergeJniLibsForRelease
    222. :voxelbusters_utility_lib:transformNativeLibsWithSyncJniLibsForRelease
    223. :voxelbusters_utility_lib:bundleRelease
    224. :prepareDebugDependencies
    225. :compileDebugAidl
    226. :compileDebugRenderscript UP-TO-DATE
    227. :generateDebugBuildConfig FAILED
    228. 143 actionable tasks: 138 executed, 5 up-to-date
    229. ]
    230. exit code: 1
    231. UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    232. UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    233. UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
    234. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    235. Rethrow as GradleInvokationException: Gradle build failed
    236. UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
    237. UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    238. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    239. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    240.  

    Here Screenshots from the Settings:

    Screen Shot 2018-04-01 at 18.18.39.png Screen Shot 2018-04-01 at 20.47.00.png Screen Shot 2018-04-01 at 20.47.04.png Screen Shot 2018-04-01 at 20.47.21.png Screen Shot 2018-04-01 at 20.47.31.png
     
  2. scheidtventureestate

    scheidtventureestate

    Joined:
    Nov 28, 2017
    Posts:
    33
    I found the issue. The unity beta changed the build order. @Voxel-Busters add a AndroidManifest.xml template to Plugins/Android/ that contains the
    package="${applicationId}"
    that is no longer replaced by Unity(!). Hardcoding the package name into the AndroidManifest leads to a build.

    So now either everyone out there needs to update their AndroidManiiest or its a Bug that unity should address.
     
    Scarafone likes this.
  3. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,819
    Hi,
    The manifest file that was added in Assets/Plugins/Android is just for reference alone. However, we don't have "${applicationId}" listed anywhere in the file too.

    Anything we are missing from your information?
    <!--Cross Platform Native Plugins-->
    <!-- Just copy the required entries mentioned in comments (ForwardNativeEventsToDalvik and hardwareAccelerated)to your existing file or Can use this file by changing to AndroidManifest.xml-->
    <!-- This manifest is just for reference only. Its not mandatory to include a root manifest, unity will create one for you-->
    <?xml version="1.0" encoding="utf-8"?>
    <manifest package="PASTE_BUILD_IDENTIFIER_HERE" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal" android:versionName="1.0" android:versionCode="1">
    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
    <application android:theme="@android:style/Theme.NoTitleBar"
    android:icon="@drawable/app_icon"
    android:label="@String/app_name"
    android:debuggable="true"
    android:hardwareAccelerated="true"> <!-- This is Required for Video Rendering-->
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@String/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
    </intent-filter>
    <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" /> <!-- This is Required for Touch Events-->
    <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" /> <!-- Use this if you want to skip the permissions dialog at start - for TargetAPI >= 23. Our plugin supports Runtime Permissions 6.0+ -->
    </activity>
    </application>
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="24" /> <!-- If you below Unity 2017.1, you can keep lower than mentioned min-sdk. Cross check whats your target sdk and set here-->
    </manifest>

    Thanks,
    Voxel Busters
     
    Last edited: Apr 2, 2018
  4. PNordlund

    PNordlund

    Joined:
    Nov 20, 2013
    Posts:
    48
    I'm seeing the same problem as well. Our project compiled just fine using Gradle earlier, but now the ${applicationId} is not replaced with the proper id during the build process.
     
  5. scheidtventureestate

    scheidtventureestate

    Joined:
    Nov 28, 2017
    Posts:
    33
    I filed a bug.
    Lets see if its getting taken care of: 1021029
     
    LeonhardP likes this.
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,106
    That link reveals all your other bug cases and email conversations in them. I'd advise you not to share this publically. The 7 figure digit in it is enough to track this case.
     
  7. PNordlund

    PNordlund

    Joined:
    Nov 20, 2013
    Posts:
    48
    This bug was introduced in 2018 it seems, as a yet another bug workaround I wrote code that uses sed during build time to replace this manually.