Import java files in sketchware | How to add java files in sketchware | Basics of sketchware
Two days ago i was designing an app in sketchware but i got stuck when i realize how can i import java files in sketchware.
Because whenever i tried to import i got stuck and my project shows error. After a few more tries i found a solution to all error of java files in sketchware.
Step 1. Open any of your sketchware project in which you want to import java file in sketchware.
Step 2. Click on three dots in top right corner and a drawer will open.
Step 3 Click on java option from this drawer.
Step 4. Now a new window will open. Here is the main thing to focus.
If you add java files using fab button on bottom then ou'll probably get error.
So i reccomend using of file picker button on the top right corner. After Clicking on it a new dialog will open.
Step 5. Here you can choose java file from your local storage. and you can easily import it.
Step 6. How to fix error
To fix error click on your imported java file and check in first line if the package name matches the same which you are using for your project. If it does not then change it and your errors will be fixed.
So these were steps of adding/importing java files in sketchware and you can easily use them to import java files in sketchware.
Comments