I am facing an issue with the Inmobi unity package with GDPR 811.
The app that I have built using the above package crashes when I try to open it. So I tried running the stack traces on the Android profiler and found that it is not able to find some UnityPlayerPro xyActivity Class. I have tried removing this class from the Android manifest but it gives build errors.
I used Unity 2019.2.0f1 version with the player settings for the Android platform as; Build Version equal to 0.1 and minimum API level as 16
I have attached a detailed bug report, which can give you more information.
Please help me out in this regard. I would greatly appreciate your assistance in this matter.
Bug Name: Application crashed on opening the app.
Area Path: click
Unity Version: Unity 2019.2.0f1
Build Version: 0.1
Minimum API Level
Android: 16
Environment: Android phone (Samsung Galaxy A10)
Description: Application crash on taping on the game Icon while opening it
Steps To Reproduce:
Import the Inmobi unity package with GDPR 811 into an empty project.
Add the InmobiAdsDemoUnity scene in the Build settings.
Build and run to the Android device.
Install the apk on the device.
Open the apk by tapping on it.
Main Errors caught in the stack traces.
10-30 16:24:52.769: E/AndroidRuntime(7118): java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.SleepyBoar.AdsDemoUnity/com.unity3d.player.UnityPlayerPro
xyActivity}: java.lang.ClassNotFoundException: Didn't find class
"com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList[[zip file
"/data/app/com.SleepyBoar.AdsDemoUnity-
USpZf9YlQynoJUyJE_N1Kg==/base.apk"],nativeLibraryDirectories=[/data/app/com.
SleepyBoar.AdsDemoUnity-USpZf9YlQynoJUyJE_N1Kg==/lib/arm,
/data/app/com.SleepyBoar.AdsDemoUnity-
USpZf9YlQynoJUyJE_N1Kg==/base.apk!/l`enter code here`ib/armeabi-v7a, /system/lib]]
The exception that you are getting is due to the main unity player activity name changes in the latest versions of Unity (from 2018).
To resolve this, you would need to find the AndroidManifest.xml file in your Unity Project and replace the activity name from com.unity3d.player.UnityPlayerProxyActivity to com.unity3d.player.UnityPlayerActivity
From
<activity
android:name="com.unity3d.player.UnityPlayerProxyActivity"
android:launchMode="singleTask"
android:label="#string/app_name">
to
<activity
android:name="com.unity3d.player.UnityPlayerActivity" // changes in this line
android:launchMode="singleTask"
android:label="#string/app_name">
After this, you should be able to run it successfully.
Related
I just upgrade advertisement package to Advertisement with Meditation package. I used sample project scripts. In unity editor everything is OK but when i build on physical android test device i'm getting this log:
"Initialization Failed: Unknown:Some services couldn't be initialized. Look at inner exceptions to get more information."
and test ads are not showing on android device.
I couldn't figure out what it means. I did a google search but couldn't find any results.
I've already enabled test mode in editor: Services->Ads->Test mode enable
My unity version: 2019.4.16f1
Adversitement with Meditation verison:
1.0.4
I'm trying to develop an entire screen in a flutter project using unity with Flutter_Unity_Widget.
I've followed the package installation instructions at pub.dev "https://pub.dev/packages/flutter_unity_widget"
but when I run the applications it pops up a window with some errors:
screenshot for emulator after running
E/Unity ( 5165): Failed to load 'libmain.so'
E/Unity ( 5165):
E/Unity ( 5165): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/lib/x86, /data/app/com.example.flutter_unity_app-H-CtYDrgxEULJH5uT-8PqQ==/base.apk!/lib/x86, /system/lib]]] couldn't find "libmain.so"
E/Unity ( 5165): Your hardware does not support this application.
and I can't handle this error.
versions:
unity: 2021.1.4f1
flutter_unity_widget: ^4.1.0
enulator: Nexus 6 API 28 android pie 9
Unity with emulator is usually painful way to develop. Try to find a real device. Because you have to export your unity as library correctly. First install to your device, then export as library. Do you have same errors with real device? Even you successfully install to your device, there is a warning with the widget you use.
Note: Supports only Unity 2019.4.3 or later. UnityFramework does not support emulator.
I was trying to make some ar and i was watching the videos on youtube how to do that and i followed along.But at last it showed me some errors.
I am putting some screenshot so that you can tell what's wrong i am doing...
Thanks in advance for helping me..
THESE ARE THE PACKAGES THAT I HAVE INSTALLED IN FOR THIS AR
AR FOUNDATION - 2.1.10
2 AR CORE -2.1.12
3 AR KIT - 2.1.10
Having the same problem as well. Android APK compiles fine before adding AR packages. Added AR Foundation 2.1.10, AR Subsystems 2.1.3 and ARCore XR Plugin 2.1.12 (All 2019.4 verified). Android API set to 24, Vulkan removed, but fails at this point.
Build Failure Message
Turns out that it's an issue with Gradle, you need to use Gradle 5.6.4 and follow the instructions here for Unity 2019.4 https://developers.google.com/ar/develop/unity/android-11-build
I ran into problems with this Unity version too. I found no fix for this Unity version, but I tried the 2020.1.10f1 version and there it all worked perfectly fine for me.
It shows error 'An error occured while applying post-build logic: Object reference not set to an instance of an object' when it builds two-file android build: APK + OBB.
Playscape's ApkCreator try to extract config file 'assets/playscape/PlayscapeConfig.xml' from APK. But config is inside .OBB file.
How to fix it?
We're currently do not support APK expansion files (for applications that are bigger than 50MB). We expect to support this functionality in a future version. Can you contact me directly so can discuss your game specifically. sharonh#playscape.com
Thanks,
Sharon
i had a problem when build an run Google CardBoard SDK for Unity.
some one can solve it?
I used:
Unity 4.2
Device: Lg - p925 ( android 4.04)
the Console in Unity Edit show:
Unable to find unity activity in manifest. You need to make sure orientation attribute is set to landscape manually.
UnityEditor.HostView:OnGUI()
Installation failed with the following output:
pkg: /data/local/tmp/Package.apk
Failure [INSTALL_FAILED_OLDER_SDK]
rm failed for -f, No such file or directory
2127 KB/s (9391146 bytes in 4.311s)
UnityEditor.HostView:OnGUI()
Error building Player: UnityException: Unable to install APK!
Installation failed. See the Console for details.
please!
About the message Unable to find unity activity in manifest., try adding the following line inside the <activity> tag in AndroidManifest.xml (found in Assets/Plugins/Android):
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
Look at the Manifest
<uses-sdk android:minSdkVersion="16" />
Your Device is 15.