I am trying to use google maps in my xamarin.forms application. when I run the application, I get the message saying that there are deployment errors
2>C:\Program Files\Java\jdk1.8.0_161\\bin\jarsigner.exe -keystore "C:\Users\e245737\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.test.and-Signed-Unaligned.apk C:\VisualStudioMobileApplication\and\and\and.Android\obj\Debug\android\bin\com.test.and.apk androiddebugkey
2>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2048-02-09) or after any future revocation date.
2>C:\Program Files (x86)\Android\android-sdk\build-tools\27.0.3\zipalign.exe 4 "C:\VisualStudioMobileApplication\and\and\and.Android\bin\Debug\com.test.and-Signed-Unaligned.apk" "bin\Debug\\com.test.app1-Signed.apk"
2>Unexpected install output: pkg: /data/local/tmp/com.test.app1-Signed.apk
2>Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
My package name is all lower case. Below is the name.
com.test.app1
I am not sure about this below error:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2048-02-09) or after any future revocation date.
My androidManifest.xml file looks like this:
my properties file looks like this:
any help will be appreciated.
Related
I got this error code
E/flutter (24478): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
and tried many options
reinstall the google service file;
re generate the debugstore, and reinstall the SHA1 and SHA256 certificates
build different apps with similar login method:
final GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn();
So far no one option success. :(
finally I found out myself that the debug key was not generated correctly, and I used the wrong SHA1. After finding out the debug keystore location, and generated the key accordingly, the problem resolved.
PS D:\sam_flutter_project\pictorial_groupbuy_v3> keytool -list -v -alias androiddebugkey -keystore "C:\Users\notebook.android\debug.keystore"
I have issue in configuring the POET Engine to pickup the /etc/sawtooth/poet_engine_log_config.toml file.
Has anyone tried to change the logging format of the SAWTOOTH POET Engine on Ubuntu?
The sawtooth documentation Log Configuration describes the logs can be configured in the /etc/sawtooth/ but even if I create the log file POET seems to ignore this file. Rest of all the services pickup the respective files e.g. intkey, rest_api, validator etc.
It so happens that the file name is this poet-engine-log-config.toml and not poet_engine_log_config.toml.
Looked at the code line 83
Im trying to learn Hyperledger Composer but seems to be a relatively new technology, i mean there are few tutorials and few solutions to a lot of questions, tutorial does not mention possible error case when following the commands and which means there are is also no solution for those errors.
I have joined the composer channel in their community chat, looks like its running in Discord or something, and asked the same question without a response, i have a better experience here in SO.
This is the problem: I have deployed my business network, installed it, started it, created my network admin card and imported it, then to test if everything is ok i have to command composer network ping --card NAME-OF-MY-ADMIN-CARD
And this error comes:
juan#JuanDeDios:~/proyectos/inovacion/a3-poliza-microservice$ composer network ping --card admin#a3-policy-microservice
Error: transaction returned with failure: AccessException: Participant 'org.hyperledger.composer.system.NetworkAdmin#admin' does not have 'READ' access to resource 'org.hyperledger.composer.system.Network#a3-policy-microservice#0.0.1'
Command failed
I think that it has to do something with the permission.acl file, and gave permission to everyone to everything so there would not be any restrictions to anyone, and tryied again, but failed.
So i thought i had to uninstall my business network and create it again, i deleted my .bna and my network.card files also so everything would be created again, but the same error result.
My other attempt was to update the business network, but didn't work, the same error happened and I'm sure i didn't miss any step from the tutorial. I do also followed the playground tutorial. What i have not done its to create another app with the Yeoman but i will do if i don't find a solution to this problem which would not require me to create another app.
This were my steps:
1-. Created my app with Yeoman
yo hyperledger-composer:businessnetwork
2-. Selected Apache-2.0 for my license
3-. Created a3-policy-microservice as the name of the business network
4-. Created org.microservice.policy (Yeah i switched names but Im totally aware)
5-. Generated my app with a template selecting the NO option
6-. Created my assets, participants and transactions
7-. Changed my permission rules to mine
8-. I generated the .bna file
composer archive create -t dir -n .
9-. Then installed my bna file
composer network install --card PeerAdmin#hlfv1 --archiveFile a3-policy-microservice#0.0.1.bna
10-. Then started my network and created my networkadmin card
composer network start --networkName a3-policy-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin#hlfv1 --file networkadmin.card
11-. Imported my card
composer card import --file networkadmin.card
12-. Tried to ping my network
composer network ping --card admin#a3-poliza-microservice
And the error happens
Later i tried to create everything again shutting down my fabric and started it again and creating the network from the first step.
My other attempt was to change the permissions and upgrade my bna network, but it failed too. Im running out of options
Hope this description its not too long to ignore it. Thanks in advance
thanks for the question!
First possibility is that your network name is a3-policy-network but you're pinging a network called a3-poliza-microservice - once you do get the correct ACLs in place (currently, that's the error you're trying to resolve).
The procedure for upgrade would normally be the procedure below:
After your step 12 (where you can't ping the business network due to restrictive ACL conditions, assuming you are using the right network name) you would have:
Make the changes to to include your System ACLs this time eg.
/**
* Sample access control list.
*/
rule SystemACL {
description: "System ACL to permit all access"
participant: "org.hyperledger.composer.system.Participant"
operation: ALL
resource: "org.hyperledger.composer.system.**"
action: ALLOW
}
rule NetworkAdminUser {
description: "Grant business network administrators full access to user resources"
participant: "org.hyperledger.composer.system.NetworkAdmin"
operation: ALL
resource: "**"
action: ALLOW
}
rule NetworkAdminSystem {
description: "Grant business network administrators full access to system resources"
participant: "org.hyperledger.composer.system.NetworkAdmin"
operation: ALL
resource: "org.hyperledger.composer.system.**"
action: ALLOW
}
Update the "version" field in your existing package.json in your Business Network project directory (ie need to change it next increment - eg. update the version property from 0.0.1 to 0.0.2.)
From the same directory, run the following command:
composer archive create --sourceType dir --sourceName . -a a3-policy-network#0.0.2.bna
Now install the new business network code firstly:
composer network install --card PeerAdmin#hlfv1 --archiveFile a3-policy-network#0.0.2.bna
Then perform the requisite upgrade step (single '-' for short form of the parameter):
composer network upgrade -c PeerAdmin#hlfv1 -n a3-policy-network -V 0.0.2
After a few seconds, ping the network again to see ACL changes are now in effect:
composer network ping -c a3-policy-network
I develop facebook integration with android. App is running in build mode its working fine but while run in realise mode app is not working. How can i resolve this problem? I got error " Invalid Key Hash XXXXXXXXXXX does not match any stored key hashes .
For people looking for answer:
We need to add both- release and debug keys under your project in Facebook developer site.
Here are the steps I followed:
create keystore by running this command:
...\Java\jdk1.7.0_01\bin>keytool -exportcert -likeytool -genkey -v -keystore <APP_NAME>.keystore -alias <APP_NAME> -keyalg RSA -validity 999999
You have already added the debug key. Now generate a release key and add it under you project.
..\Java\jdk1.7.0_01\bin>keytool -exportcert -alias -keystore .keystore file> | openssl sha1 -binary | openssl base64
Sign your app in the release mode.
I am getting following results:
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystor
e "C:\Documents and Settings\Administrator.android\debug.keystore" -storepass a
ndroid -keypass android
androiddebugkey, May 27, 2011, PrivateKeyEntry,
Certificate fingerprint (SHA1): "Some Code"
But after entering this in http://code.google.com/android/maps-api-signup.html for getting MAP API it is showing invalid fingerprint.
Can you please guide me is the fingerprint I have got is correct or not. Because I am getting it as SHA1 and not MD5. How can I get API key??
keytool -v -list -alias alias_name -keystore my-release-key.keystore
With JDK 1.7 installed, keytool outputs by default SHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well.
Please update the page with this info, many devs are having problems trying to get a maps key.
http://code.google.com/p/android/issues/detail?id=19035
After entering key add ; and your application package name
eg. sha1 code blablabla;com.example and then generate the key.
Happy coding....
also check this tutorial and recheck steps you followed it worked for me....