-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't build project in my local machine's android studio #268
Comments
You probably messed something up. There is no I pulled the source code with
|
I didn't make a new project. I cloned the repo by the "import by version control" option in Android Studio |
This just downlods the files. How did you open it? |
After importing, Android Studio opened this repo as Android project |
Just use |
Let me try |
Yes, It does show folder structure. How to make it show App structure? |
File -> Open -> Select "simple-keyboard" folder (must have android icon which means that it's a project). |
In the previous screenshot, it had android icon for "simple-keyboard" folder when I opened. |
Well I tested on a computer that didn't even have Android Studio installed and runs Windows. It just worked, so it's something messed up in your machine. |
I built the app in my android phone in termux app. with gradle and without gradle . with gradle I had to do a little tweak. And without gradle it was super easy just javac , aapt and dx. Done . |
@Anonymous2716 do share the exact steps, sounds nice :) |
@licaon-kter install termux from fdroid if you haven't already https://github.com/termux/termux-app.
Now start building simple-keyboard. Clone the repository in termux app :
After cloning move to the Before you begin building here are two files you have to edit otherwise you will get errors. I got at least. File 1: File 2
In line 51 edit whatever strings inside it replace the strings. I replaced the strings to s I guess its just an encoding error. Make sure you are in main directory
And then compile the java code into classes.
The .java files are now compiled in their own directories Compile classes to Dex file :
Create the apk file :
Add the Dex fie to apk :
There you go you have successfully built simple keyboard. Now you have to sign the apk file. https://stackoverflow.com/questions/10930331/how-to-sign-an-already-compiled-apk You can use this to sign the apk. Them move the apk to phones internal storage and install it. For gradle build you have to follow this. Its more complicated than that. But worked. |
Getting this error
The text was updated successfully, but these errors were encountered: