build errors with some version numbers
Posted: Wed Jul 03, 2019 12:26 pm
I had this issue that confused me for a while.
Every time I tried to build an apk, I got the build failed message, although it did create a working apk.
I did have problems getting a stable internet connection earlier, so the adroid studio installation failed many times before it completed. Suspecting that the installation might be corrupt, I did install it on three different computers, but with the same problem.
It turned out to be my version numbering that generated the problem.
I did consider my first appemts as alpha releases, so I did start numbering them 0.01 and up.
It turns out that the compiler wil only accept one digit if the version starts with 0.x
So that 0.1 is ok, but 0.24 is not. And for some reason eg. 0.98 will fail faster than a smaller numer like 0.74
If the version number is above 1 it will accept more digits, eg. 1.31
Every time I tried to build an apk, I got the build failed message, although it did create a working apk.
I did have problems getting a stable internet connection earlier, so the adroid studio installation failed many times before it completed. Suspecting that the installation might be corrupt, I did install it on three different computers, but with the same problem.
It turned out to be my version numbering that generated the problem.
I did consider my first appemts as alpha releases, so I did start numbering them 0.01 and up.
It turns out that the compiler wil only accept one digit if the version starts with 0.x
So that 0.1 is ok, but 0.24 is not. And for some reason eg. 0.98 will fail faster than a smaller numer like 0.74
If the version number is above 1 it will accept more digits, eg. 1.31