• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by timothyph · Oct 23, 2017 at 08:20 PM · androidandroid-manifestinapp purchase

Unity IAP Issue - Android

Hi all - I'm testing Codeless IAP on an Android device and getting an error on tap of the IAP button:

The class UnityEngine.VR.VRSettings could not be loaded, used in Stores

I took a look at the generated manifest and I see the following:

  <activity android:name="com.unity.purchasing.googleplay.VRPurchaseActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:enableVrMode="com.google.vr.vrcore/com.google.vr.vrcore.common.VrCoreListenerService" android:theme="@style/VrActivityTheme">
   <intent-filter>
     <action android:name="com.google.vr.vrcore.ACTION_NONE" />
     <category android:name="com.google.intent.category.DAYDREAM" />
   </intent-filter>
 </activity>

My game does not have VR enabled in the build settings, and this error only started once I integrated the Unity IAP.

Questions:

  1. Is VR required to enable IAP?

  2. If not, is there a setting I'm missing that will disable this?

  3. Am I better off creating a Purchaser script and ditching the Codeless IAP?

Any help would be greatly appreciated! This is my first attempt at in-app purchases and getting a VR error kind of threw me for a loop.

Comment
tiyulin
MerlinTwi

People who like this

2 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tiyulin · Oct 27, 2017 at 05:24 AM 0
Share

Same issue. I've tried 2017.01 and 2017.02, the result is same.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Anipen · Feb 27, 2018 at 09:05 AM

  1. Find UnityPurchasing - Bin - Android - GooglePlay.aar

  2. Change GooglePlay.zip

  3. UnCompress

  4. AndroidManifest.xml Open

  5. delete VRPurchaseActivity

  6. delete GooglePlay.zip

  7. Compress GooglePlay Folder

  8. Rename GooglePlay.aar

Comment
CalaveraX

People who like this

1 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CalaveraX · Apr 04, 2022 at 05:39 PM 0
Share

you are my hero! i was tying to build for android 12, and neded the android:exported="false" tag for all the intent filters, and aanalizing the final merged manifest i founded this vrcore stuff and didnt had any idea from where it was coming from until i got to this post. THANK YOU!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

153 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Permissions added to Android Manifest, but Google Play not registering the change? 0 Answers

Implementing AdMob with Google Play Services on Unity3D / Android 0 Answers

Build app crashes on start because of including a provider in the AndroidManifest.xml 1 Answer

when build to android, no splash screen and hangs on black screen 0 Answers

[Android - Data save issues] Does the 'install location' determine the location of persistentDataPath? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges