Android Studio failed to build App Engine module - android

I tried to generate app engine backend for android app module in Android Studio. First I had encountered the Maven nonexistence problem, which was solved later on. Then another problem appeared.
Below is the error log generated:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project AndroidBackend-AppEngine: Compilation failure
[ERROR] error: error reading C:\Users\arifsamin.m2\repository\com\google\appengine\orm\datanucleus-appengine\2.1.2\datanucleus-appengine-2.1.2.jar; error in opening zip file
Do I have to download a new repo due to this? If I have to how to do so? Android Studio is very alien to me.

Make sure you have fresh install of Android Studio 0.2.+. Upgrade from pre 0.2 doesn't work as google included extra maven repo to serve support libraries.
Edit:
path in the log is correct, just stackoverflow plays silly and hides \ before .

Related

React Native Build for android fails on windows machine

I am unable to run any react native app for android on my windows machine, I followed all steps stated on the official documentation but still doest work. I keep getting this error
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.util.zip.ZipException
I'm using the latest version of NPM and React Native as of this time.
I need to know how to fix this so the app builds successfully and runs on my virtual or real device, thanks.
The stacktrace of error can be summarized to java.util.zip.ZipException: Error opening zip file.
This can happen when exposing a corrupted jar file.
Checkout the libraries you are adding to the project. The JAR files should be intact and not corrupted.

Error Building Android Project in Unity 2019.1f31

I am trying to build my Android project in Unity 2019 and get this error at the end of the build process:
Build failure
com.android.build.api.transform.TransformException:
com.android.builder.dexing.DexArchiveBuilderException:
com.android.builder.dexing.DexArchiveBuilderException: Failed to
process /Users/spin/.gradle/caches/transforms-1/files-
.1/com.android.support.support-fragment-2
6.1.0.aar/ccd5e1b70db7ab174f18c2e28670dc6a/jars/classes.jar See the
Console for details.
In older versions on Unity, I used the Internal option as the build system, but 2019 version does not have that. So it looks like it uses the Gradle which I don't know much about.
Any ideas how to fix?
you need to download and install JDK, SDK then accurate the path then -> go to preferences -> go to external tool and then accurate the JDK, SDK file folder in unity android build setting
then make sure your android connected with your PC and build your unity android app in your mobile
in addition, you can download unity current version android build to support your problem will be solved easily
GD-Developer Sohaib Kh thanks

Running flutter while offline - stuck on Resolving Dependencies

I'm trying to set up Flutter on a PC without internet connection.
I get stuck on "Resolving Dependencies" when trying to run an app (on a physical Nexus 5), and after some time I get a "Build failed with an exception" and a lot of failed download messages.
I installed the required software (inc. VSCode) as well as copied the flutter and gradle folders from my other PC where I normally use Flutter to develop.
Flutter doctor says I'm all good. I created the app offline using "flutter create --offline name_of_app".
This happens even if I try to run the app using Android Studio with gradle set to offline work and a path is directing to a full gradle distribution.
The error is:
* Error running Gradle:
ProcessException: Process "C:\name_of_app\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not download gradle.jar (com.android.tools.build:gradle:3.2.1)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar'.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar'.
And it continues to mention other file names as well.
What am I missing? I can run the app on my other PC when I disconnect it from the internet.
Thanks in advance.
As a beginner both in programming and in flutter I commit this answer with caveats. It worked on my machine (a Lenovo laptop), on Manjaro Linux.
First problem I had encountered during the compilation phase was the -beta01 problem. The gradle offline plugin available for download from android studio site has currently version number 3.5.0-beta01. By some automatism 'flutter create --offline' sets the dependency to gradle:3.5.0 in the global build.gradle file. I solved that part of the problem by replacing 3.5.0 with 3.5.0-beta01.
Second problem was a number of missing dependencies compiler complained about. I downloaded them all and put them in the gradle plugin folder (in Linux it's /home/username/.android/manual-offline-m2/android-gradle-plugin-3.5.0-beta01/ - the recommended path from the Android studio configuration walk-through). They were mostly gradle and kotlin related.
When I resolved the second order dependencies the work was done. The base flutter app compiled with no errors , with all the offline settings (online repositories' paths in global build.gradle commented out, internet disconnected).
For offline use, which is solely for learning purposes, I plan not to update flutter channels, nor the maven and gradle plugin, being that the only reason one would use a computer with no internet access for flutter is for learning in the beginner's phase ... Up in the mountains of Croatia... At least that's where I plan to use it :D

Missing File Xamarin for Androind on Ubuntu 18.04

I am trying to get a Xamarin-Android app that was created on Linux in Jetbrains Rider to to run on a device from Rider but get the following error:
Xamarin.Android.Common.targets(2465, 3): [MSB4018] /usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2465,3): error MSB4018: The "BuildApk" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find file "/usr/lib/mono/xbuild/Xamarin/Android/lib/armeabi-v7a/libmono-android.debug.so"
I have followed the instructions here: https://github.com/0xFireball/xamarin-android-linux
I should also note that running native apps from Android Studio works fine, it's just Xamarin with project Rider. Any help would be greatly appreciated.
Make sure you download the .tar.bz2 archive from the mono-project, and not the .tar.xz file. The latter is missing those files.

Trouble building a sample and running a module in Titanium Mobile

I'm attempting to create an Android module. I've read and followed the steps in the guide of creating an android module provided by the appcelerator wiki.
However I encountered a few problems along the way. I created the module using Titanium Studio, imported into eclipse and I was shown with a errors in the java file. http://min.us/mbj8ktGHgh#1o
I proceeded on ignoring the errors and attempt to build the module as instructed by the guide. Right click on ant.xml and run the first option. The build failed because it failed to find the Android NDK. I solved that by downloading the Android NDK and adding "android.ndk=path" to the build.properties. Ran it again and encountered another problem. This time it failed to find the libs folder. http://min.us/mbj8ktGHgh#2o
What went wrong?

Categories

Resources