With Unity 2017.4 and later version, android:hardwareAccelerated="false" of the Activity is fixed so that the scroll function on custom webview may have problems. To resolve this issue, execute the following [Method 1]. [Method 1] - Export your project from Android Studio.
- Add
android:hardwareAccelerated="true" to the MainActivity of AndroidManifest.xml file.
| <activity android:name="com.hive.UnityPlayerActivity" android:label="@string/app_name" android:hardwareAccelerated="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> |
- Build your app.
When you use Unity 2018 and later version, you can build with IPostGenerateGradleAndroidProject class. To resolve this problem with Unity 2018 and later, follow the [Method 2]. [Method 2] - Change to
android:hardwareAccelerated="true" . - Add the attached file to the path, Assets/Editor/.
- Build your app.
Attached file: ModifyUnityAndroidAppManifestSample.cs |