0

I cloned affdex-me for android from github and successfully build the gradle,but when running the app, it closed and error, I have put the license and rename it as the tutorial shown

FATAL EXCEPTION: main Process: com.affectiva.affdexme.debug, PID: 17554 
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.affectiva.affdexme.debug/com.affectiva.affdexme.MainActivity}:
com.affectiva.android.affdex.sdk.LicenseException: could not open license file
ahamino
  • 634
  • 1
  • 4
  • 12
alfitra
  • 27
  • 7

1 Answers1

2

Not sure which tutorial you were using but I checked our developer portal and it wasn't as clear as it could have been so I updated the instructions. The updated versions are:

The gist of it is: copy the license file to the app/main/src/assets/Affdex directory and pass the filename to the setLicensePath() method.

detector.setLicensePath("affdex.license");
caboteria
  • 80
  • 4