2019.3.0a6 + Vuforia for Android, managed to get a project working:

The exported project, when embedding the project into a native app gives me an error in Android Studio:

CONFIGURE SUCCESSFUL in 0s
ERROR: Failed to resolve: :VuforiaWrapper:
Affected Modules: unityLibrary

So i guess the build.gradle in the Gradle Scripts can’t find the VuforiaWrapper.aar

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    //implementation(name: 'VuforiaWrapper', ext:'*.aar')
}

I switched the implementation looking for the VuforiaWrapper by extension and just added the ‘*.aar’ ti the file tree and was able to get a simple project working.

Hope this helps someone

I should mention that it builds, but crashes when launched., still working to figure out why. My guess is that it’s not actually including the VuforiaWrapper where it’s needed. I’ll post an update if i figure out how to get vuforia working in an embedded unity app.

06/20 15:40:25: Launching app
$ adb shell am start -n "com.company.mynativeapp/com.unity.mynativeapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.company.mynativeapp | com.company.mynativeapp.test
Waiting for application to come online: com.company.mynativeapp | com.company.mynativeapp.test
Connecting to com.company.mynativeapp
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/System.out: Debugger has connected
waiting for debugger to settle...
I/chatty: uid=10183(com.company.mynativeapp) identical 1 line
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/chatty: uid=10183(com.company.mynativeapp) identical 1 line
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1484)
W/any.mynativeap: JIT profile information will not be recorded: profile file does not exits.
W/any.mynativeap: JIT profile information will not be recorded: profile file does not exits.
W/any.mynativeap: JIT profile information will not be recorded: profile file does not exits.
I/chatty: uid=10183(com.company.mynativeapp) identical 8 lines
W/any.mynativeap: JIT profile information will not be recorded: profile file does not exits.
I/InstantRun: starting instant run server: is main process
W/com.company.mynativeapp: type=1400 audit(0.0:8853): avc: denied { read } for comm=45474C20496E6974 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=19968 scontext=u:r:untrusted_app:s0:c183,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "vendor.debug.egl.profiler"
W/any.mynativeap: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
D/OpenGLRenderer: Skia GL Pipeline
I/Adreno: QUALCOMM build : 3f88ca2, I42f6fe38fb
Build Date : 07/13/18
OpenGL ES Shader Compiler Version: EV031.24.00.00
Local Branch : 50.04
Remote Branch : 
Remote Branch : 
Reconstruct Branch : 
Build Config : S P 4.0.10 AArch64
W/RenderThread: type=1400 audit(0.0:8854): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=19968 scontext=u:r:untrusted_app:s0:c183,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "ro.vendor.graphics.memory"
I/Adreno: PFP: 0x016ee170, ME: 0x00000000
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 1
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
E/libc: Access denied finding property "vendor.gralloc.enable_ahardware_buffer"
W/RenderThread: type=1400 audit(0.0:8855): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=19968 scontext=u:r:untrusted_app:s0:c183,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@5df9c3
E/Unity: Unable to find main
E/any.mynativeap: No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.company.mynativeapp, PID: 13083
java.lang.UnsatisfiedLinkError: No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)
at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator(Native Method)
at com.unity3d.player.UnityPlayer.resume(Unknown Source:23)
at com.unity3d.player.UnityPlayerActivity.onResume(UnityPlayerActivity.java:78)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
at android.app.Activity.performResume(Activity.java:7300)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3814)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3854)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Here’s the log output.
[Edit] added more detailed log.

So I it looks like nativeRestartActivityIndicator() was something related to il2cpp. When I try to build with il2cpp, i get some errors in Unity 2019.3.0a6 + Vuforia:

NDK ‘19.0.5232133’

Hoping this helps if someone else is trying to use 2019.3 + Vuforia + il2cpp.

Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2019.3.0a6\Editor\Data\il2cpp\build/UnityLinker.exe', CommandLine='-out=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/tempStrip -x="C:/Program Files/Unity/Hub/Editor/2019.3.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/Core.xml" -x=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml -x=C:/Users/Tactic/AppData/Local/Temp/tmp4a69d8b8.tmp -x=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml -d=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed --include-unity-root-assembly=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/VuforiaScripts.dll --include-unity-root-assembly=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll --include-unity-root-assembly=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/Vuforia.UnityExtensions.dll --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed --rule-set=Conservative --editor-data-file=C:/Users/Tactic/Documents/UnityAsLibrary/Android/UnityProject/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json --platform=Android --architecture=ARMv7 --disable-engine-module-support --enable-engine-module-stripping --engine-stripping-flag=EnableUnityConnect --engine-modules-asset-file="C:/Program Files/Unity/Hub/Editor/2019.3.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset"', CurrentDirectory='C:\Users\Tactic\Documents\UnityAsLibrary\Android\UnityProject\Temp\StagingArea\assets\bin\Data\Managed', Native error= The system cannot find the file specified.

System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <d465e2b2e5054d2787d6364114c43446>:0)
System.Diagnostics.Process.Start () (at <d465e2b2e5054d2787d6364114c43446>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:104)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:218)
UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Collections.Generic.IEnumerable`1[T] additionalBlacklist, UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.ManagedStrippingLevel managedStrippingLevel, System.Boolean stripEngineCode, System.String editorToLinkerDataPath) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:150)
UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.Collections.IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:354)
UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:242)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:325)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1e4e503d63564b9bb3acaea72709ade7>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1e4e503d63564b9bb3acaea72709ade7>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <1e4e503d63564b9bb3acaea72709ade7>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1e4e503d63564b9bb3acaea72709ade7>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:332)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)