Where can I check Ionic's compiler error output? - android

I'm using Ionic and this is the message:
BUILD FAILED C:\adt\sdk\tools\ant\build.xml:720: The following error
occurred while executing this line:
C:\adt\sdk\tools\ant\build.xml:734: Compile failed; see the compiler
error output for details.
Total time: 5 seconds
C:\wamp\www\external\projectx\dirx\platforms\android\cordova\node_modules\q\q.js:126
Where can I see the log details? I've tried googling a bunch of things like "ionic log path" etc but nothing comes up. I saw something else that said run it with a -c argument but the output is the same.

Make sure you update your sdk, sometimes error occur when trying to build android incompatible API to your cordova version or ionic.

Related

Jenkins failing robolectric test cases...!

I am trying to build my android project on Jenkins 2.0 server on Ubuntu machine.
I am running the following commands for that purpose:-
./gradlew clean (this is working fine)
./gradlew build (this is failing random number of test cases)
However I also install Jenkins 2.0 on my Windows 7 machine and run the same commands as above, and it was passing all test cases every time. I am not understanding what is wrong with that.
I did lot of debugging but could not find any solution, please help me to get rid out of this thing...!
This is my 34th build log on Jenkins
testPreCondition FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
handleBackButtonPressing FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
48 tests completed, 2 failed
:app:testDebugUnitTest FAILED
This is my 35th build log on Jenkins without making any code changes
> handleBackButtonPressing FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
> testPreCondition FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
> testPreconditions FAILED
java.lang.NullPointerException at UpdateTabFragmentTest.java:30
> testPreconditions FAILED
java.lang.NullPointerException at ServiceTabFragmentTest.java:29
> testPreConditionIsNotNull FAILED
java.lang.NullPointerException at HomeActivityTest.java:63
48 tests completed, 5 failed
:app:testDebugUnitTest FAILED
You should check the Jenkins console output for something like
"WARNING: No manifest file found " in the console output.
Those NPEs are typical for missing resources.
The most common source for failing robolectric builds on different environmnets is probably robolectric not beeing able to load any resources.
Since robolectric needs to know where your Android Manifest is, you may have to provide a extra robolectric.properties for the build
http://robolectric.org/configuring/

Phonegap back button control

I'm trying to get the back button to go to the home screen and keep the app open in the background but I can't seam to find out how to do it.
I have tried creating a plugin using Dpa99c's answer here but I a. don't know where to put the java class before compiling and b. no matter where I try I just keep getting errors.
[phonegap] compiling Android...
[error] An error occurred while building the android project.Error executing "ant debug -f ".../phone/news/platforms/android/build.xml"":
BUILD FAILED
.../android-sdk-linux/tools/ant/build.xml:720: The following error occurred while executing this line:
.../android-sdk-linux/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 6 seconds

error in NetBeans for android setContentView

I have the following errors after installing android sdk, and android plugin for NetBeans:
c:/Android/android-sdk/tools/ant/build.xml:892:The following error occurred while executing this line:
c:/Android/android-sdk/tools/ant/build.xml:894: The following error occurred while executing this line:
c:/Android/android-sdk/tools/ant/build.xml:906: The following error occurred while executing this line:
c:/Android/android-sdk/tools/ant/build.xml:284: null return: 2
My guess is that the environment is not properly configured to run the build. You can look into c:/Android/android-sdk/tools/ant/build.xml:284 to see what is executed there. You may need to tell Ant where is Java installed or something similar.

Error when building Android Studio Example

I'm running Ubuntu 12.04 LTS and get the following error when building the example Android Studio example:
Gradle: Execution failed for task ':MyApplication:mergeDebugResources'.
Error: Failed to run command:
/home/dean/android-studio/sdk/build-tools/android-4.3.1/aapt s -i /home/dean/AndroidStudioProjects/MyApplicationProject/MyApplication/build/exploded-bundles/ComAndroidSupportAppcompatV71800.aar/res/drawable-xhdpi/abc_ic_search.png -o /home/dean/AndroidStudioProjects/MyApplicationProject/MyApplication/build/res/all/debug/drawable-xhdpi/abc_ic_search.png
Error Code:
132
It looks like I'm missing some resource.
There seems to be an issue with aapt on some 32 bit systems. It throws an error 132 on app:processDebugResources which is when aapt is 'crunching' png files ready for inclusion in the apk package. You can see more details at https://code.google.com/p/android/issues/detail?id=75110
This agrees with your reported error - "aapt -s" is the command to crunch a single image file (in your case abc_ic_search.png).
Some people have reported that 'fixing' the offending png files (e.g. by opening in Gimp and saving) sorts the problem so that would be worth trying at least. There's clearly a deeper problem with aapt but that may get you going for now.
Also can you just say if you are indeed running on a 32 bit processor, and if so which one? You can use lscpu to find out.

Error while trying to apportable iOS app to Android

I have been trying to port my first iOS app to Android with apportable.
I have solved alot of warnings and errors but cannot get rid of this last one.
The App I made is a fitness application for jogging so it uses CoreLocation.
Everything looks good when I run apportable now except this last error:
Build/android-armeabi-debug/com.apptonix.easyrunner/testTabbedWithCore/libtestTabbedWithCore.a(DetailViewController.m.o):/Users/peterbodlund/Documents/xcodeprojects/Training/inlamning5/testTabbedWithCore/testTabbedWithCore/DetailViewController.m:function L_OBJC_CLASSLIST_REFERENCES_$_114: error: undefined reference to 'OBJC_CLASS_$_MKPinAnnotationView'
scons: * [Build/android-armeabi-debug/EasyRunner/apk/lib/armeabi/libverde.so] Error 1
scons: building terminated because of errors.
Exception AttributeError: "'NoneType' object has no attribute 'pack'" in > ignored
Usually this is an indicator that there were link errors. Check your output higher up and look for missing symbol errors.
The build log is confusing because the build is parallel by default.
Add the option -j1 to cause the build to stop immediately after the first error.

Categories

Resources