Closed unicaap closed 1 year ago
The most recent release is built from the most recent commit.. so I had no problem building these APKs. The issue must have something to do with your particular development toolchain.
I'm not currently in the virtual machine that I use for my Android development environment, so I can't give exact version numbers.. but my Android Studio version starts with 2021
.. so it's recent but not bleeding edge.
All I do is "import an existing project", and browse to the "android-studio-project" directory.
My bad, I did an "Open" rather than "Import". I can compile now. Thank you for the tip!
I have another question though - in your README, it mentions the ability to generate different APK variations. How do I do that ? I can't figure this part out. The only Run configuration I have after import is "Android-Mock-Location-service". Is there some additional configuration that needs to be performed?
off the top of my head.. I'd say the steps go (something) like:
there's also a "build variant" tab or button at the bottom left.. that lets you choose the default APK variation.. which (imho) is only necessary when choosing "Run" > "Debug".. since (when doing so) I'm not aware of any way to dynamically choose the particular variation to build.. which is then signed with the debug certificate.. pushed by adb to a connected device.. and attached to the debugger.
Ok, if you have time, could you please let me know the Android Studio version you are using. I've been trying several versions and I get different errors like gradle/AGP version errors. :-(
I've settled for 2021.3.16 but I can't get through the error below:
First with this info:
Task :prepareKotlinBuildScriptModel UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 31s
Then with the error below:
Unresolved dependencies
No matching configuration of project :Mock-my-GPS-UnifiedNlp-Backend-artifacts was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:locationProvider' with value 'withGooglePlayServicesFusedLocationProvider', attribute 'com.android.build.api.attributes.ProductFlavor:languageResources' with value 'withAllLanguageTranslations', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1' but:
I've been using Android Studio 2021.3.1.17 for the past 7 months. This is what was used to build the most recent release. Your version appears slightly newer.. so it should work fine.
update.. you were right, and I was very wrong..
today, somebody else made the same comment..
so I took a closer look..
and quickly realized that .gitignore
had prevented an important directory from being saved to the repo..
I fixed it just now..
I'm really sorry! ..this was completely my bad
I am getting the error below when trying to build the project - where can I get the project Mock-my-GPS-UnifiedNlp-Backend-artifacts?
Could not determine the dependencies of task ':Mock-my-GPS:compileEnglishWithAospLocationProvidersDebugJavaWithJavac'.