question

Ajmal M A avatar image
Ajmal M A asked Mateus commented

SecurityException: Access denied to package When Create TaxRate

When I tried to add tax rate to each inventory item using following code :

TaxRate taxRate = new TaxRate();
taxRate.setRate(1000l);
taxRate.setName("Custom Taxes");
taxRate.setIsDefault(false);
inventoryConnector.connect();

inventoryConnector.createTaxRate(taxRate); // Exception happend here

List<TaxRate> taxRates = new ArrayList<TaxRate>();
taxRates.add(taxRate);
newItem.setTaxRates(taxRates);

The following security exception throughs :

 java.lang.SecurityException: Access denied to package 
     at android.os.Parcel.readException(Parcel.java:1425)
     at android.os.Parcel.readException(Parcel.java:1379)
     at com.clover.sdk.v3.inventory.IInventoryService$Stub$Proxy.createTaxRate(IInventoryService.java:2427)
     at com.clover.sdk.v3.inventory.InventoryConnector$143.run(InventoryConnector.java:1206)

I have already added all permissions and installed from sandbox appstore as shown below: image description

Please help me to solve this issue.

Inventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

Welcome to the
Clover Developer Community