So I am a beginner with Android development and kotlin , I started 1 week back and trying to build a calculator, I have made the UI/UX and the buttons works with constraints and I ultimately get a string consisting of numbers and arithmetic symbols , but the problem is how do I compute this , I searched a lot and found that in Java I can use javax.script to use javascript function of evaluating string directly , for which I tried importing it’s dependencies but it shows error in unresolved symbol script , so please help on how I can resolve this and import this API to use to compute the string and return the answer

Here are some screenshot of what I did in my code :-

Thankss 🙂

submitted by /u/Professional_Knee_71
[link] [comments]