Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I could not find: com.company.product #14

Closed
Explorerli opened this issue Feb 15, 2020 · 2 comments
Closed

I could not find: com.company.product #14

Explorerli opened this issue Feb 15, 2020 · 2 comments

Comments

@Explorerli
Copy link

Hi,

When I follow this tutorial: 'Integration Unity as a library in native Android app Version 2'.

I got an error, I could not find 'com.company.product' in 'MainUnityActivity.java'.

MainUnityActivity.java:
image

I don't have 'com.company.product'.

I could not extend 'OverrideUnityActivity'.

But I found OverrideUnityActivity.java in 'UnityProject\Assets\Plugins\Android'.

How do I solve this problem?

Thank you in advance.

@emandravickas
Copy link
Contributor

Hey! Sorry to hear that you are having this issue. OverrideUnityActivity.java is in fact placed in UnityProject\Assets\Plugins\Android folder. It is considered to be an android plugin, and should be copied during project export procedure. If you do not have it inside your exported unityLibrary project (it should be inside unityLibrary\src\main\java\com\company\product\ folder) it is most likely that it is not marked as Android plugin. Could you check that? To do so you need to open Unity Editor, find and click on OverrideUnityActivity.java in assets and check "Android" checkbox in file inspector window.

@emandravickas
Copy link
Contributor

I'm assuming the issue was resolved. Feel free to reopen if it is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants