Android Question error while compiling

alshaqsi

Member
Licensed User
I am trying to compile my application; however, I get the an error msg each time as shown in the attached file. Please help

Screenshot_2016-09-22-19-12-46.png
Screenshot_2016-09-22-19-12-46.png
 

alshaqsi

Member
Licensed User
Any clue in answering such a question?

I tried all the possible ways. I reinstall the Android SDK, and the b4a.exe. Note that I am using B4A bridge!!!
 
Upvote 0

alshaqsi

Member
Licensed User
Yes it does. However, it gives an error msg when trying to click on connect in the WYSIWYG tab!!
 

Attachments

  • b4a bridge.png
    b4a bridge.png
    12.1 KB · Views: 272
  • WYSIWYG .png
    WYSIWYG .png
    38.4 KB · Views: 294
Last edited:
Upvote 0

alshaqsi

Member
Licensed User
I reinstall the SDK twice!! the B4A bridge is connected. But the complie and rapid as weel as the WYSIWYG designer give the above mentioned error, acopy is given below:

Installing file to device. Error
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon: Result too large
error: cannot connect to daemon: Result too large
 
Upvote 0

alshaqsi

Member
Licensed User
I was using a proxy while downloading the SDK. Thus, I disable the proxy and then I reinstall the SDK and the b4a.exe. Now I am getting the below error msg. I changed the time out may time but no hope!!!
B4A version: 6.00
Parsing code. (0.00s)
Compiling code. (0.08s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.12s)
Compiling debugger engine code. (4.53s)
Compiling generated Java code. (4.59s)
Convert byte code - optimized dex. (3.55s)
Optimized dexer failed. Switching to Standard dexer.
Packaging files. (0.58s)
Copying libraries resources (0.00s)
Signing package file (debug key). (1.14s)
ZipAlign file. (0.09s)
Installing file to device. Error
Process timed out.
You can change the timeout value under Tools - IDE Options.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
You did not answer Erel's questions in post #7.
Maybe you should give him the information he asked for and he might be able to help.....
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You still didn't answer my first question in that post. Makes it difficult to help you.

Anyway, for some unknown reason the Android SDK doesn't work properly on your computer. The B4A IDE will not work properly if 'adb devices' hangs.

The path also doesn't look correct. You should carefully follow the installation instructions: https://www.b4x.com/b4a.html
 
Upvote 0

alshaqsi

Member
Licensed User
Regarding the version of the Windows pls note that I have windows 7 professional service pack 1.

As for ur the installation instructions, it is mentioned that the SDK does not behave properly when it is installed in a path with space embedded. Thus it is recommended to install it in another folder C:\android\platform\android-21\android.jar.
I installed mine in the following path
C:\programDats\androidFiles\platform\android-24\android.jar

According to the B4A beginners guide the path of the older versions is

C:\android\android-sdk-windows\platform\android-8\android.jar


Please advice
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I created a folder "C:\Android\" and installed the sdk there. It might be possible just to copy your old folder to your new location.
Make sure to modify in B4A under Tools/Configure Paths the new location for the android.jar.
If you have set adb as a system variable, then you should modify the path as well.
Try and let us know.
 
Upvote 0

alshaqsi

Member
Licensed User
I followed the instructions in post #13 but still getting the following problem

B4A version: 6.00
Parsing code. (0.00s)
Compiling code. (0.05s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.26s)
Compiling debugger engine code. (1.22s)
Compiling generated Java code. (2.17s)
Convert byte code - optimized dex. (3.17s)
Optimized dexer failed. Switching to Standard dexer.
Packaging files. (2.52s)
Copying libraries resources (0.00s)
Signing package file (debug key). (3.48s)
ZipAlign file. (0.05s)
Installing file to device. Error
Process timed out.
You can change the timeout value under Tools - IDE Options.

new  error 1.png



new  error 2.png
 
Upvote 0
Top