Comments (9)
Missing files. Added plugin again and work.
from cordova-plugin-android-fingerprint-auth.
If your build is not copying the language string files from the plugin to your project then you may need to manually add them to your project in the appropriate directory.
from cordova-plugin-android-fingerprint-auth.
Ok, glad you got it working.
from cordova-plugin-android-fingerprint-auth.
Sorry, now we are getting another error when we build our project. We are using latest version downloaded from github today.
`error : Server build failed. Server output: Project "CargoTrak.tmp.proj" (default targets):
android Build Tooling revision 2016.10.19.7r
Build Tooling Hostname ab-linuxbpc-2
Warning: Note: Some input files use or override a deprecated API.
Warning: Note: Recompile with -Xlint:deprecation for details.
Warning: Note: Some input files use or override a deprecated API.
Warning: Note: Recompile with -Xlint:deprecation for details.
Warning: Note: Some input files use or override a deprecated API.
Warning: Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Warning: /tmp/builds/EL9JKFtkyhJu8CfrZ0/app/res/values/strings.xml:3: Error: "app_name" is not translated in "es" (Spanish), "fr" (French), "no" (Norwegian), "ru" (Russian), "zh" (Chinese), "zh-CN" (Chinese: China), "zh-HK" (Chinese: Hong Kong SAR China), "zh-MO" (Chinese: Macau SAR China), "zh-SG" (Chinese: Singapore), "zh-TW" (Chinese: Taiwan) [MissingTranslation]
Warning: "CaminCargo Control"
~~~~~~~~~~~~~~~
Warning: Explanation for issues of type "MissingTranslation":
If an application has more than one locale, then all the strings declared
Warning: in one language should also be translated in all other languages.
Warning: If the string should not be translated, you can add the attribute
Warning: translatable="false" on the element, or you can define all your
non-translatable strings in a resource file called donottranslate.xml. Or,
Warning: you can ignore the issue with a tools:ignore="MissingTranslation"
Warning: attribute.
Warning: By default this detector allows regions of a language to just provide a
Warning: subset of the strings and fall back to the standard language strings. You
Warning: can require all regions to provide a full translation by setting the
Warning: environment variable ANDROID_LINT_COMPLETE_REGIONS.
Warning: You can tell lint (and other tools) which language is the default language
Warning: in your res/values/ folder by specifying tools:locale="languageCode" for
Warning: the root element in your resource file. (The tools prefix
refers to the namespace declaration http://schemas.android.com/tools.)
Warning: 1 errors, 0 warnings
Warning: FAILURE:
Warning: Build failed with an exception.
Warning: * What went wrong:
Warning: Execution failed for task ':lintVitalArmv7Release'.
Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
lintOptions {
checkReleaseBuilds false
Warning: // Or, if you prefer, you can continue to check for errors in release builds,
Warning: // but continue the build even when errors are found:
Warning: abortOnError false
}
}
...
- Try:
Run with --stacktrace
Warning: option to get the stack trace. Run with --info or --debug option to get more log output.
Warning: /tmp/builds/EL9JKFtkyhJu8CfrZ0/app/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /tmp/builds/EL9JKFtkyhJu8CfrZ0/app/gradlew with args: cdvBuildRelease,-b,/tmp/builds/EL9JKFtkyhJu8CfrZ0/app/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildArch=armv7,-PcdvBuildMultipleApks=true
Error: Build failed during execution
Error: 'Build failed with error code 1'
Done building project "CargoTrak.tmp.proj" -- FAILED.
.
Done building project "CargoTrak.iceproj" -- FAILED.
Build FAILED.
`
from cordova-plugin-android-fingerprint-auth.
I'm sorry you are having difficulties building your application. However, these errors are not issues with the plugin, but with project settings. The warning messages provide solutions to remedy the problem. Please implement one of the suggested settings and you should be able to successfully build your application. The error is pointing to the "app_name" in the strings.xml, if you don't need it, you could delete it? You can add that key to all the language files. You can add the attribute translatable="false" on the element. I would try that last one as it seems the simplest solution.
from cordova-plugin-android-fingerprint-auth.
Dear,
We tried all of the possibility but still I’m getting same error.
Implementation:
- We added folders cordova-plugin-android-fingerprint-auth and then removed the folders values-es, values-fr, values-no, values-ru, values-zh, values-zh-rCN, values-zh-rMO, values-zh-rSG and values-zh-rTW
- We removed folder android-fingerprint completely
- We added below logic to all fpauth-strings.xml files
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingTranslation" - Also, we added attributes translatable="false"
We are still getting below errors,
[2016-11-02 14:48:01.712] Log (Info,Medium): Packing files Plugins\cordova-plugin-android-fingerprint-auth\res\android\values-es\fpauth-strings.xml, Plugins\cordova-plugin-android-fingerprint-auth\res\android\values\fpauth-strings.xml, bin\Release\Android\CargoTrak.apk, bin\Release\iOS\app.ipa with root C:\MobileApps\CargoTrak\CargoTrak. [2016-11-02 14:48:04.899] Log (Info,Medium): Checking user identity [2016-11-02 14:48:04.900] Log (Info,Medium): User logged in as [email protected] [2016-11-02 14:48:33.991] Log (Info,Medium): Checking user identity [2016-11-02 14:48:33.992] Log (Info,Medium): User logged in as [email protected] [2016-11-02 14:48:33.992] Log (Info,Medium): Requesting LiveSync token. [2016-11-02 14:48:34.024] Log (Info,Medium): Checking user identity [2016-11-02 14:48:34.024] Log (Info,Medium): User logged in as [email protected] [2016-11-02 14:48:34.025] Log (Info,High): Sending build request for project CargoTrak with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9} Platform=Android AndroidCodesigningIdentity=Ken Parker ProjectConfiguration=Release AcceptResults=Url;LocalPath BuildConfiguration=Release Framework=Cordova FrameworkVersion=4.0.0 LiveSyncToken=RShJA+DdqYWmHGpO/m0auCupYRC6uyzkqKPARz7gRdEBGHrpizJAP5DKsh7Js9IKA+qWBYGp2npSCINDiGeyiRRNfyCQ2Q9BZEE6NYpz6YBoIEYDmlq74ocjVI1gSEoQ. [2016-11-02 14:48:49.573] Log (Exception,High): Server build failed. Server output: Project "CargoTrak.tmp.proj" (default targets): android Build Tooling revision 2016.10.19.7r Build Tooling Hostname ab-linuxbpc-2 Warning: Note: Some input files use or override a deprecated API. Warning: Note: Recompile with -Xlint:deprecation for details. Warning: Note: Some input files use or override a deprecated API. Warning: Note: Recompile with -Xlint:deprecation for details. Warning: FAILURE: Warning: Build failed with an exception. Warning: * What went wrong: Warning: Execution failed for task ':mergeArmv7ReleaseResources'. Warning: > Warning: [string/app_name] /tmp/builds/DmPQwZhm0ShFFvVLgy/app/res/values/fpauth-strings.xml [string/app_name] /tmp/builds/DmPQwZhm0ShFFvVLgy/app/res/values/strings.xml: Error: Duplicate resources Warning: * Try: Warning: Run with Warning: --stacktrace option to get the stack trace. Run with --info or Warning: --debug option to get more log output. Warning: /tmp/builds/DmPQwZhm0ShFFvVLgy/app/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /tmp/builds/DmPQwZhm0ShFFvVLgy/app/gradlew with args: cdvBuildRelease,-b,/tmp/builds/DmPQwZhm0ShFFvVLgy/app/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildArch=armv7,-PcdvBuildMultipleApks=true Error: [string/app_name] /tmp/builds/DmPQwZhm0ShFFvVLgy/app/res/values/fpauth-strings.xml [string/app_name] /tmp/builds/DmPQwZhm0ShFFvVLgy/app/res/values/strings.xml: Error: Duplicate resources Error: Build failed during execution Error: 'Build failed with error code 1' Done building project "CargoTrak.tmp.proj" -- FAILED. . [2016-11-02 14:48:49.804] Log (Exception,High): System.Exception: Build for Android completed with errors. See build log for more information.
from cordova-plugin-android-fingerprint-auth.
Closing because this is not an issue with the plugin. This plugin adds resource files to support multiple languages. You must accommodate for this fact and make adjustments to your project accordingly. The issue seems to be with the string for "app_name" in the strings.xml file. This string resource does not belong to the plugin. You need to add xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation" to the strings.xml file not the fpauth-strings.xml files.
from cordova-plugin-android-fingerprint-auth.
I have added a signature.gradle file to the plugin and referenced it in the plugin.xml file and it did fixed the issue. Thanks.
from cordova-plugin-android-fingerprint-auth.
If it is something you think should be added to the plugin, send me a pull request to review.
from cordova-plugin-android-fingerprint-auth.
Related Issues (20)
- Fingerprint popup box out of place on Samsung Galaxy S10+
- Gui translations are not applied. English is only language. HOT 1
- android.content.res.Resources$NotFoundException HOT 4
- FingerprintAuth is not defined HOT 1
- android.content.res.Resources$NotFoundException: HOT 1
- FaceID on new mobile devices HOT 1
- isAvailableSuccess response, what das it means? HOT 3
- Fatal Exception: java.lang.IllegalStateException: IV has already been used. Reusing IV in encryption mode violates security best practices.
- Multi-access HOT 3
- Deprecated FingerprintManager in API level 28 HOT 6
- BAD_PADDING_EXCEPTION after reinstall HOT 3
- A question about multiple users HOT 3
- Attempt to invoke virtual method HOT 2
- Cannot dismiss Fingerprint dialog HOT 1
- [IONIC] "Uncaught TypeError: object is not a function"
- Uses encryption mode CBC with PKCS7 padding
- setUserAuthenticationRequired true to false update not supporting Backup flow HOT 1
- Add support for newer android sdk's (starting from sdk 28).
- 请问encryptConfig中的clientId如何获取,可否提供操作步骤?
- BSF Cordova Ecosystem Crowdfunding Plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-android-fingerprint-auth.