Expo android build not working

#1

Every time I try to build with the following command:
exp build:android

It fails with the following:
[exp] Checking if current build exists…

[exp] ============
[exp] Build Status
[exp] ============

[exp] Android: There was an error with this build.

The build number is:
4c424692-e28c-4203-8cdb-74b6e8984266

Is there anyway to get any build logs via the CLI?

#2

Can you paste your app.json file? I’m seeing this error in the build logs:

/src/exponent/android-shell-app/expoview/build/intermediates/bundles/release/aapt/AndroidManifest.xml:23: AAPT: Tag <uses-permission> attribute name has invalid character '-'.

This usually happens when an invalid permission entry is created, although it could be due to an incorrect XML escape on our end.

#3

That explains it - I have an AndroidManifest.xml file in the root of the application.

I’ve missed this bit of the documentation:
https://docs.expo.io/versions/latest/sdk/permissions.html

Is there any way to view the build logs as this would have saved me asking the question?

Thanks for your help.

#4

Sorry still not working build number is:
c78d5c7c-07d6-4256-a6d2-4406a7d6d1cd

App.json is:
{
“expo”: {
“name”: “ProfessionalServiceGroup”,
“icon”: “./img/app-icon.png”,
“version”: “0.0.1”,
“slug”: “professional-services-group”,
“sdkVersion”: “19.0.0”,
“ios”: {
“bundleIdentifier”: “co.uk.vertical-software.ProfessionalServiceGroup”
},
“android”: {
“package”: “co.uk.vertical-software.ProfessionalServiceGroup”
}
}
}

I have the following warnings:
[exp] Warning: Problem validating fields in app.json. See https://docs.expo.io/versions/v19.0.0/guides/configuration.html.
[exp] • ‘android.package’ should be a reverse DNS notation unique name for your app. For example, host.exp.exponent, where exp.host is our domain and Expo is our app…
[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.

Not sure whether this would be affecting it?

#5

Yeah, can you try resolving those warnings and then see if it works?

#6

Fixed the build “warning’s” and I’ve now got an apk! Upgraded to SDK 20 in the process too. Along with the Expo React Native build.