首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >以AR-vos为基础的应用程序在使用团结2018年构建时,不会在Android-12上启动。

以AR-vos为基础的应用程序在使用团结2018年构建时,不会在Android-12上启动。
EN

Stack Overflow用户
提问于 2022-03-30 22:03:21
回答 1查看 652关注 0票数 0

Ar (https://ar-vos.com),我的基于统一ARCore的应用程序在解决了android:exported="true"问题后,不再在Android-12上启动。

特别是,我希望它能与团结2018年的版本一起工作,我尝试了所有的版本,直到U 2018.4.36,但没有找到解决方案。基于U2019.4.35的版本可以工作,但是在这个版本中,我的客户端创建的所有预制板看起来都很糟糕,因此我也无法部署该版本。:-(

我真的很想解决这个问题,我的客户端需要一个更新的版本,我现在还不能部署到PlayStore上。

如果有谁有一个基于统一2018年ARCore的应用程序,并且能够为Android级别的>= 31创建一个版本,并且已经成功地将该版本部署到PlayStore上,我想谈谈。虽然AR-vos是一个开源项目,但它也有一个商业方面,即我愿意支付帮助。

我的舱单看起来像这样

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.arpoise.ARvos"
    android:installLocation="auto"
    android:targetSandboxVersion="2"
    android:versionCode="20220213"
    android:versionName="1.12" >

    <uses-sdk
        android:minSdkVersion="24"
        android:targetSdkVersion="32" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <uses-feature android:glEsVersion="0x00020000" />

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <uses-feature
        android:name="android.hardware.location.gps"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.location"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.touchscreen.multitouch"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.touchscreen.multitouch.distinct"
        android:required="false" />

    <queries>
        <package android:name="com.google.ar.core" />
    </queries>

    <uses-feature
        android:name="android.hardware.camera.ar"
        android:required="true" />

    <application
        android:extractNativeLibs="false"
        android:icon="@mipmap/app_icon"
        android:label="@string/app_name"
        android:theme="@style/UnityThemeSelector" >
        <activity
            android:name="com.unity3d.player.UnityPlayerActivity"
            android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density"
            android:exported="true"
            android:hardwareAccelerated="false"
            android:label="@string/app_name"
            android:launchMode="singleTask"
            android:screenOrientation="fullSensor" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="unityplayer.UnityActivity"
                android:value="true" />
        </activity>

        <meta-data
            android:name="unity.tango-enable"
            android:value="True" />
        <meta-data
            android:name="unityplayer.SkipPermissionsDialog"
            android:value="true" />
        <meta-data
            android:name="unity.build-id"
            android:value="e50bd308-bd13-4431-83b0-92ad104e18cd" />
        <meta-data
            android:name="unity.splash-mode"
            android:value="0" />
        <meta-data
            android:name="unity.splash-enable"
            android:value="True" />
        <!-- The minimal version code of ARCore APK required for an app using this SDK. -->
        <meta-data
            android:name="com.google.ar.core.min_apk_version"
            android:value="210910000" /> <!-- This activity is critical for installing ARCore when it is not already present. -->
        <activity
            android:name="com.google.ar.core.InstallActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:excludeFromRecents="true"
            android:exported="false"
            android:launchMode="singleTop"
            android:theme="@android:style/Theme.Material.Light.Dialog.Alert" />

        <meta-data
            android:name="com.google.ar.core"
            android:value="required" />
    </application>

</manifest>

在我的Android-12设备上,这会显示Unity屏幕,然后变成黑色。在较旧的Android设备上,它工作得很好。

如果我将目标版本改为android:targetSdkVersion="30“,该应用程序在我的Android-12及更旧版本的设备上安装和工作良好。

但我不能再发布一个带有android:targetSdkVersion="30“的应用到游戏商店了。

除了为2018年基于Android-12的应用程序设置android:exported=“真”之外,我还没有找到解决方案。

我试图找到使意图再次奏效的方法,但却找不到解决办法。

如果有人想看一看,我将apk和整个Unity上传到https://arpoise.com/transfer/,我使用了Unity2018.4.23作为这个项目。

EN

回答 1

Stack Overflow用户

发布于 2022-04-16 22:23:58

因为似乎没有答案,我把这个问题变成了我的github上的一个bug,如果你发现了这个并且有什么要说的,请对https://github.com/ARPOISE/ARpoise/issues/24做出反应,

问候

彼得

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71684650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档