If that is setup properly and it still does not work, you could try forcing gradle to rebuild its cache for the project (just in case something has been corrupted in there). From within your cht-android directory, run mv .gradle backup.gradle
If none of that works, it would be helpful if you could post the complete output for your make org=new_brand flavor=New_brand bundle command.
@jkuester
before digging deeper, could you please clarify that the path of the generated apks is correct?
According to the documentation, the files should have been created in
Configure project :
WARNING:Using flatDir should be avoided because it doesn’t support any meta-data formats.
FAILURE: Build failed with an exception.
What went wrong:
Task ‘bundleMsfecareRelease’ not found in root project ‘cht-android’.
Try:
Run gradlew tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Okay, wait, I think I know what is going on here. Is the branch for you new branded based on a previous tag of cht-android (such as v0.11.1)? If so, you will also need to include the the version (Webview/Xwalk) as part of your flavor that you provide to make ... bundle.
E.g.: make flavor=New_brandWebview bundle
The source of my confusion was that in the upcoming v1.0.0 of cht-android we are removing the separate versions and so if you happen to be testing things while on the master branch (like I was) then make flavor=New_brand bundle should work without the extra version notation…
Note that it is correct to base the branch for your new bundle off of the last released version (as mentioned in the documentation) and not off master. Just realize that with the new major version of cht-android, this bundle command will be changing. @Jennifer_Quesada feel free to jump in here and correct me if I am wrong or add anything I missed!
Hi @jkuester
I’m running into this same problem.
I was base to base my branch to v1.0.4 however I’m getting the following error.
FAILURE: Build failed with an exception.
What went wrong:
Task ‘assemblesearch_cht’ not found in root project ‘cht-android’.
Try:
Run gradlew tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Hi the the command
make flavor=search_cht assemble
I’ve executed /gradlew tasks and I can’t see assemblesearch_cht in the list of “Build tasks”.
Thank you.
Erick
Hi,
My app bundles very well and generates the required APK.
However when I install the apk on my android phone or the android emulator. The app is not displaying any page.
Kindly let me if I might have missed anything in this configuration
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Search Cht</string>
<string name="app_host">URL of the host server</string>
</resources>
Is the configuration of “app_host” ok?
Thank you.
Erick