Hi,
I posted a message about not being able to build CityBars or a simple login sample the other day but unfortunately got no replies. I'm now trying to build another app on a different PC and have more errors. The big problem for me as a beginner with all this is that the error messages are very uninformative even when building in debug mode. Today I have reinstalled Android SDK and Ant so that neither have any spaces in their paths. I think that fixed one error I had on my other PC (not at this location). The first errors I see in the debug log are:
The text from ant (?) of "The following error occurred while executing this line:" is not much help when it does not say what the error is. If I look at the lines in question in the specified build.xml they do not appear to relate to an error. One line is blank!
It then says "Could not run ant with error: 1". I know ant runs at a command prompt and I know it is on the path. I also have the advised environment variables set.
The next errors are no easier to solve. "[DBG] exit code was : 7" but I guess this is the result of the earlier errors.
I've attached the complete debug build log if anyone has the time to look at it or can recommend a way to diagnose the problem.
Thanks
John.
I posted a message about not being able to build CityBars or a simple login sample the other day but unfortunately got no replies. I'm now trying to build another app on a different PC and have more errors. The big problem for me as a beginner with all this is that the error messages are very uninformative even when building in debug mode. Today I have reinstalled Android SDK and Ant so that neither have any spaces in their paths. I think that fixed one error I had on my other PC (not at this location). The first errors I see in the debug log are:
Code:
BUILD FAILED
C:\Android\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:284: null returned: 2
Total time: 33 seconds
""C:/Android/SDK\tools\android" create project --target android-18 --name MyLandlordSA --activity STActivity --path "C:\inetpub\wwwroot\MyLandlordSA/build/native-package-mobile/MyLandlord/packager.json\/" --package uk.co.mearsgroup.MyLandlordSA"
Could not run ant with error: 1
Failed to package application
[DBG] exit code was : 7
[DBG] exit code was : 7
[ERR]
Created directory C:\inetpub\wwwroot\MyLandlordSA\build\native-package-mobile\MyLandlord\packager.json\src\uk\co\mearsgroup\MyLandlordSA
Added file C:\inetpub\wwwroot\MyLandlordSA\build\native-package-mobile\MyLandlord\packager.json\src\uk\co\mearsgroup\MyLandlordSA\STActivity.javaThe text from ant (?) of "The following error occurred while executing this line:" is not much help when it does not say what the error is. If I look at the lines in question in the specified build.xml they do not appear to relate to an error. One line is blank!
It then says "Could not run ant with error: 1". I know ant runs at a command prompt and I know it is on the path. I also have the advised environment variables set.
The next errors are no easier to solve. "[DBG] exit code was : 7" but I guess this is the result of the earlier errors.
I've attached the complete debug build log if anyone has the time to look at it or can recommend a way to diagnose the problem.
Thanks
John.
Aucun commentaire:
Enregistrer un commentaire