Closed Kaligula0 closed 2 years ago
Probably Android Studio Bug. I Googled for last line form Event log NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
and found this. Possibly Issue to close but I'm not sure until new Android Studio release.
For comparison, I'm using Android Studio 3.5.1. You should add the google-services.json
file in the app/
folder. I'm not using the NDK, so there might be a misconfiguration of Android Studio. Note that I have an app/app.iml
file locally, but this is git ignored. See if adding the missing file will generate the IML file and get you past the error.
I completely uninstalled the Android Studio then.
Now I installed Android Studio 3.6.3. No more problems with NDK.
It still can't find file app/app.iml
but I have a app/boardgamegeek4android-app.iml
file – is it another thing or a substitute or another version of the same? Maybe your project directory is named app
? Because mine is boardgamegeek4android
(D:\GIT\boardgamegeek4android
), maybe the filename is generated from the directory name.
I got also an error that it couldn't find git
… I had to add it to my PATH variable. It's good to know if anybody else had the same issue.
And also I had to download Android SDK Platform 28
and Android SDK Build-Tools 28.0.3
→ open Android SDK Manager via Menu/Tools/SDK Manager
→ tab SDK Platforms
→ choose Android 9.0 (Pie)
; and also tab SDK Tools
→ check Show Package Details
below the list → choose Android SDK Build-Tools 28.0.3
. (Download, install.) I wrote it JIC sb has the same issue.
But now I have the problem with com.github.rhlff:NestedScrollWebView:v1.0.2 described in https://github.com/ccomeaux/boardgamegeek4android/issues/134#issuecomment-617151304
All above problems are solved (also #134), thanks!
BUT – how can I build the apk to install it on my phone* and test it? Should it be signed or not? I tried unsigned and it didn't install at all, tried signing (firstly with Signare.jar from XDA) and it didn't install at all.
Can somebody show me the way, please @tupaschoal @icesphere @tvedeane ?
*) I can emulate it on my laptop, but Android Studio and VM together consume so much RAM that the virtual device is almost non-responsive. However, I tried, ran it succesfully, but couldn't sign in to my account.
Assuming you already got the google-services.json file and you're just looking how to build and sideload this this is what you nee to do(at least this is what I did). I use linux so I only have experience doing this from the command line and have no idea how to do it through android studio(I couldn't get anything to work through android-studio, the built in gradle kept dying on weird errors)
Hopefully this helps, if not, feel free to ask for any more clarifications and I'll try to clarify.
To answer @Kaligula0 's question from September, you can generate a Debug APK and install that on your phone. If you want is to upgrade the version of the app that I post here, you will need the signing key that I use. This is left over from the Google Play days.
How to import the project to Android Studio? I tried downloading ZIP, cloning by Gitub Desktop and Cloning by Android Studio, but I think the problem is somewhere else, I don't know where. After opening I get the following error:
ERROR: CreateProcess error=2, Nie można odnaleźć określonego pliku <a href="openFile::C:\Users\Lenovo\StudioProjects\boardgamegeek4android\app\build.gradle">Open File</a>
In English it will be cannot find the specified file or sth. But the file is there, I can find it in Windows Explorer, open and view in e.g. Notepad.Here's Event Log:
I also downloaded
google-services.json
(as in CONTRIBUTING.md) but I don't know how to add this to project. In Android Studio the tree on the left looks different from how-tos in the internet, it's just a file list form the main folder while everybody shows that there should be an in-app resources tree view (or sth I don't know how to call it).I'd love do help but I don't know how. I'm a hobby programmer but I've already helped with few websites and apps using various tools like github (since it was only CLI) or Eclipse – but I did it very very rarely so each time I'm very suprised by the changes. Please help me to help you.