You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
We are not able to apply intune plugin for MAMification on android test only modules. (Modules with plugin id 'com.android.test')
So, if we need to call a method on an activity like onNewIntent, we are unable to do that and get an error. like this: java.lang.IllegalAccessError: Method 'void com.microsoft.intune.mam.client.app.MAMActivity.onNewIntent(android.content.Intent)' is inaccessible to class
Expected behavior:
We should be able to call methods like those on activity so as to test them.
Screenshots and logs: java.lang.IllegalAccessError: Method 'void com.microsoft.intune.mam.client.app.MAMActivity.onNewIntent(android.content.Intent)' is inaccessible to class
Intune App SDK for Android (please complete the following information):
-What version of the Intune SDK are you using? Are you using the latest version? Yes
-What platform is your app based in (Java, Xamarin based, Cordova, etc)? Java
-For errors during build, does the app build without Intune SDK integration? No
-For errors post build, does the app launch without being Intune SDK integrated? No
-Who is the customer? Adobe
-Do you see a trend with it only being reproduced on a specific device? No
Describe the bug:
We are not able to apply intune plugin for MAMification on android test only modules. (Modules with plugin
id 'com.android.test')
So, if we need to call a method on an activity like
onNewIntent
, we are unable to do that and get an error. like this:java.lang.IllegalAccessError: Method 'void com.microsoft.intune.mam.client.app.MAMActivity.onNewIntent(android.content.Intent)' is inaccessible to class
To Reproduce
Expected behavior:
We should be able to call methods like those on activity so as to test them.
Screenshots and logs:
java.lang.IllegalAccessError: Method 'void com.microsoft.intune.mam.client.app.MAMActivity.onNewIntent(android.content.Intent)' is inaccessible to class
Intune App SDK for Android (please complete the following information):
-What version of the Intune SDK are you using? Are you using the latest version? Yes
-What platform is your app based in (Java, Xamarin based, Cordova, etc)? Java
-For errors during build, does the app build without Intune SDK integration? No
-For errors post build, does the app launch without being Intune SDK integrated? No
-Who is the customer? Adobe
-Do you see a trend with it only being reproduced on a specific device? No
Is there a way to run Mamification on Test only modules?
You can read more about Android Test Only modules here: https://proandroiddev.com/effective-testing-with-android-test-only-modules-3164ed9b20a0
The text was updated successfully, but these errors were encountered: