-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Dear All
I am trying to build Push-Android using the Generator, i.e., with:
$ ruby push.rb -o -aandroid -mandroid
The script's "gradle build" didn't work out of the box. I have updated some version numbers and a repo path (for viewpager) in templates/android/android_build_gradle.erb.
Currently I am getting this error:
FAILURE: Build failed with an exception.
* What went wrong:
Cannot read packageName from
/path/to/Push-Android/src/main/AndroidManifest.xml
I can't work out why gradle is looking in Push-Android/src/ instead of Push-Android/app/src/.
Running gradle build in Android Studio I found a bit more info:
- Crashlytics issues a warning, which seems to be related (looking in src/ instead of app/src/):
Crashlytics couldn't find the res folder specified in sourceSets.main.res, please make one. It picked: src/main/res
- The task that fails is :generateDebugBuildConfig:
:prepareComViewpagerindicatorLibrary241Library
:prepareIoFabricSdkAndroidFabric1310Library
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig FAILED
Am I missing a setting somewhere, to tell gradle to look in app/src/?
I am not very familiar with gradle or building for Android so any help gratefully received.
Push looks like a brilliant app and the Generator is an excellent idea. I am very much looking forward to having it up and running.
With thanks and best wishes
Ivan