Android app with Oracle MAF, build.xml not found - java

I'm currently developing an Android (API 21) app on Eclipse OEPE (Mars) using a 64-bit Win7. The SDK was downloaded and installed by Android Studio (with all the platform-tools and build-tools). I have had no trouble writing the app, but as soon as I try to debug it as described here (Step 6), I get the following error:
BUILD FAILED
{WorkspacePath}\HelloWorld\.main.android.1\bin\build.xml:3: The following error occurred while executing this line:
{WorkspacePath}\HelloWorld\.main.android.1\bin\build-set-globals.xml:67: Cannot find C:\AndroidSdk\tools\ant\build.xml imported from {WorkspacePath}\HelloWorld\.main.android.1\bin\build-set-globals.xml
Total time: 895 milliseconds
(I'm the one who replaced the path to the workspace with {WorkspacePath}).
I have no idea what's going on and couldn't find anything on internet; any suggestion?
EDIT: I forgot to mention it, but the thing that is bothering me the most is that there's no "ant" folder in {SDKPath}/tools

Related

Problem with unity gradle build (java maybe?)

I've got an android project going on and it all goes smoothly until i try to implement ads. As soon as i turn on the unity ads and install the ads package, my game doesn't build anymore and gives me this Gradle build failed error. I've really tried anything so everything helps. Thank you.
Console errors:
Configure project :launcher warning: C:\Users\fili7\OneDrive\Desktop\Unity Proj\Lio\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\libs\classes.jar(com/samsung/android/gamesdk/GameSDKManager.class): major version 53 is newer than 52, the highest major version supported by this compiler. It is recommended that the compiler be upgraded. CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" Build completed with a result of 'Failed' in 46 seconds (46351 ms) UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&) UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)
Pretty much everything. Tried on multiple unity versions, even tried to use custom skd and ndk and gradles, nothing worked.

Getting issues with ADB for react-native run-android

I've been trying to follow the react-native tutorial on udemy, but I've been having trouble getting started: When I try to run the react-native run-android, I've been getting this error:
app:installDebug FAILEDnstallDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge.
ADB location: C:\Users\(USERNAME)\AppData\Local\Android\Sdk\platform-tools\adb.exe
I've been using the latest android studio client; I have been using an emulator to simulate a Google Nexus 5, and using the java version that is compatible for the project (the latest, 9.0.9, has been causing problems). I have no familiarity with Genymotion, as it has not been mentioned in the class or is said to be a necessary application; any solutions involving this has not been of any use so far.
Thanks for reading.

Android Studio: Error:C:\Users\User\.gradle\caches\2.2.1\scripts\asLocalRepo5_113e7t6m24zb1tcikv41hnqka\InitScript\initscript\cache.proper

Trying to get a program to compile. Ive had Android Studio working on this machine before, but since I installed my printer, I haven't been able to get it to work again. While compiling the program I get the message:
Error:C:\Users\User.gradle\caches\2.2.1\scripts\asLocalRepo5_113e7t6m24zb1tcikv41hnqka\InitScript\initscript\cache.properties (The system cannot find the file specified)
Idea.log ends with:
INFO - radle.project.ProjectSetUpTask - C:\Users\User.gradle\caches\2.2.1\scripts\asLocalRepo5_113e7t6m24zb1tcikv41hnqka\InitScript\initscript\cache.properties (The system cannot find the file specified)
Consult IDE log for more details (Help | Show Log)
2015-07-05 17:50:26,956 [2412420] INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
What should I do?
From the drop down menu do below steps:
File > Invalidate Caches/Restart... and then restart to recreate the cache
Build > Clean Project
Try to delete C:\Users\User.gradle folder. then restart Android Studio Hope your Problem May solve

Phonegap 3.3 cannot add platform

I have upgraded my Phonegap running on Windows 7 to the currently latest version to 3.3.0. I could create a project without any issue but when I try to add a platform say "android" an error occurs. Shown below is the error I get when I run "cordova platform add android" command on command promt on Windows 7. Please help.
E:\Dropbox\Development\Android\weatherlk>cordova platform add android
Creating android project...
C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\node_modules\q\
throw e;
^
Error: An error occured during creation of android sub-project.
C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.
throw e;
^
Error: An error occurred while listing Android targets
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\lib\check_
at _rejected (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at Promise.when (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\
at Promise.promise.promiseDispatch (C:\Users\Teshan\.cordova\lib\and
752:41)
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at flush (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\nod
at process._tickCallback (node.js:415:13)
at C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\src\plat
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
I had exactly this problem today. Turned out I had white space in the path variable for \android-sdk\tools (in windows 7 environment variables). Check the android batch file runs, ie type android in a command prompt in any directory, and also adb for the platform-tools path. A similar question is answered here < An error occured during creation of android sub-project >.
Here is a blog about installing it from start to finish with a little more detail than phonegap/cordova docs offer. A lot easier than piecing together the different stack questions: http://www.andrewsavory.com/blog/2013/2517

xmlvm my android to iphone project

I have a working android app, I now have a new mac for the sole purpose of developing the same app on iphone. I have installed xmlvm on the mac and I moved by android app into the workspace and when I try and cross compile I get an error - could not find input resource: bin. Anybody here using xmlvm to cross compile android apps? Can you help with this error? There is a bin folder in my Test_One project.
pwd /Users/iosdev/Documents/workspace/xmlvm/Test_One
/Users/iosdev
iOS-Mac-mini:~ iosdev$ java -Xmx700m -jar /Users/iosdev/Documents/workspace/xmlvm/dist/xmlvm.jar --in=bin --out=out --target=iphonec --app-name=testone
[03/11/12 10:00:19.281] ERROR: InputProcessFactory: Could not find input resource: bin
[03/11/12 10:00:19.290] ERROR: XmlvmProcessor: No inputs to process.
[03/11/12 10:00:19.290] ERROR: Something went wrong during processing.
iOS-Mac-mini:~ iosdev$
Try with in=bin/, or with --in=bin/*. The problem is simple: It can't find the "bin"-resource, I guess it thinks of it as a file and not a directory.

Categories