Recently our team has started to use TFS for both Version Control, Build and Release cycle (C++ and C# projects) and i'm being pressuured to do the same regarding the Android application we are developing.
The andorid project is in a separate Git repository on TFS and I have already managed to link the Release with Google play. What I'm struggling with is the gradle build.
During the build, gradlew stops, failing to find Google Repository, Android Support Repository and SDK Patch Applier v1
But both Google Repository and Android Support Repository are installed within the SDK which is specified in local.properties file (C://sdk).
What am I missing? Is there any more documentation regarding gradle and TFS beside this one?
I'm using default gradle build definition:
Related
We have a plugin for Unity to be used by games on Android. The plugin is built on macOS with gradle 7.1.1, multidex enabled, fat-aar, and grease 0.3.0
Building with Unity 2021.3.3f1 on macOS Monterey, deploying to device running Android 11.
Targeting Android SDK 32. Multidex is enabled, minify/jetifier/R8 all turned off in Unity's gradle build scripts. AndroidManifest.xml is set up properly to use multidex. I've checked spelling and class names, and since it's targeting SDK 32, we don't need to use the android.support package.
We're building a Unity project that only includes our plugin and some code that calls into it, so the project is already as barebones as it can get while still using the plugin. The Unity app was building and running just fine until we introduced fat-aar and grease. Also, Unity builds with a pretty old version of gradle, 4.6.
Our plugin also builds a test app APK, and that test app APK contains R$string.class as well as other R$* classes generated by multidex (found via dex2jar). Our plugin AAR contains R.txt that references androidx_startup.
It seems like a dependency isn't having it's string resources propagated forward to the final app, but I'm not even sure that's the problem.
On the guide for building Android projects offline, there is a link to the maven artifacts and gradle plugin for download. The instructions says they need to be unzipped and put in a directory called ~/.android/manual-offline-m2 and then create a script called offline.gradle the given code in ~/.gradle/init.d/offline.gradle.
This will probably be working fine for the latest stable version of Android studio, but since I am using Canary version 4.0.0-alpha07, I have no idea where to find android studio gradle plugin for this version of the IDE. The Android website obviously does not point to any download or archive to this version of the plugin. It only gives the download link for gradle plugin 3.5.0-beta01. Android Studio 4.0.0 Canary 7 does not accept this version of plugin although configure is successful when this version of plugin is applied in application build.gradle.
So, the question is how can I download (where) the gradle plugin for the latest Canary build of Android Studio?
you can download it from here https://nexus.xebialabs.com/nexus/content/repositories/public/. you need to recursively download the folder and files using wget.
for example
wget --continue --directory-prefix="location-to-save" --no-check-certificate --no-parent --recursive --timestamping "https://nexus.xebialabs.com/nexus/content/repositories/public/org/
you need to install wget first.
I am basically a .NET Developer but from the last few days, I was working with Ionic. I was able to build and generate APK files from my system where I had installed Android tools from Visual Studio & other dependencies. Below is a list of dependencies that I had installed on my system.
- Java (JDK8)
- Gradle
- Android SDK & Emulator
By using these dependencies, I was able to build my Ionic App and generate APK files.
My Question is that - Now I am moving my code to a new system. What are the minimum dependencies I need to install so that I can keep the show running as before? I know, below dependencies are required.
- Java (JDK8)
- Gradle
Now confusion comes when I think about Android dependencies.
Q1. Installing the Android SDK will be enough for building an app and generating APK files?
Q2. If Android SDK is the only requirement left then from where can I
download it for the latest API Level & what is the size of Android SDK? How much space it would take on my hard disc?
Q3. Will I be required to install other dependencies from SDK Manager after installing the SDK to build the app?
My sole objective is to know the minimum dependencies and their setup to build the Ionic Android App & it's APK generation.
You need Java, Gradle, Android SDK to generate an apk(Android) in Ionic.
So in your case just install the android SDK.
Do not forget to add the path variables for Gradle, Java.
How can I solve this problem shown in the image?
../tools/lib/proguard.cfg (System can not find the file specified)
The reason why you're getting that problem is because newer versions of the Android SDK no longer have a ProGuard configuration file and instead rely on the Android Gradle plugin (Android Studio) to provide the relevant ProGuard configuration.
Google has officially dropped support for the Eclipse-based Android Development Tools (ADT) plugin, as mentioned in their official announcement:
The Eclipse ADT plugin is no longer supported per our announcement. Android Studio is now the official IDE for Android, so you should migrate your projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrate to Android Studio from Eclipse.
In order to be able to create new Android projects, you should migrate to Android studio using the migration steps that Google provided.
I am a newbie to Android programming. I am using Android Studio 1.1.0
I have following query regarding building an app using gradle.
What is the purpose of specifying buildscript dependencies 'com.android.tools.build:gradle:1.1.0' in build.gradle
What does this build statement actually do.
I have searched the forum but could not find anything specific on this.
However from some of the google search it seems to suggest that this statement might be required for the gradle script to download Android Plugin for gradle.
I find it surprising that though I am using Android Studio I still need to download Android Plugin for gradle. Should it not be coming in-built.
Appreciate your time and help
As the name suggest, "Android Build Tools" is a command line tools for building your Java source code (along with all the related assets) into executable APK file. It's located at your Android SDK directory (usually at $ANDROID_HOME) and can be updated using Android SDK manager (accessible via Android Studio IDE).
What is the purpose of specifying buildscript dependencies com.android.tools.build:gradle:1.1.0 in build.gradle
Android is using Gradle build system. That build script dependency is Gradle plugin to interact (compile, test, etc) with the Android Build Tools. That line declares that your project require Android's Gradle plugin version 1.1.0.
I find it surprising that though I am using Android Studio I still need to download Android Plugin for gradle. Should it not be coming in-built.
Android Studio (AS) is just an IDE, you can actually use any IDE that support Gradle build system. Android Build Tools and its Gradle plugin (it's not AS plugin) is constantly updated by the devs separated from Android Studio project (although it's pretty closely related). Moreover, different projects can requires different version of build tools and its Gradle plugins. So it's just make sense that Android Studio requires them to be downloaded independently from the IDE.