Android build succeeding with Xamarin Studio (OSX) but failing with XBuild - android

Title says it all really. I have a project that builds in Xamarin Studio on OSX but fails when I try and use xbuild to build it from the command line. I'm running
/Library/Frameworks/Mono.framework/Commands/xbuild /t:Build /p:Configuration=Release ../foo/foo.sln
to build the app and I'm getting errors like:
obj/Release/android/src/mono/com/google/android/gms/games/multiplayer/realtime/RoomStatusUpdateListenerImplementor.java(51,97): error : error: package com.google.android.gms.games.multiplayer.realtime does not exist
private native void n_onDisconnectedFromRoom (com.google.android.gms.games.multiplayer.realtime.Room p0);
and
obj/Release/android/src/mono/android/support/v7/internal/widget/ActivityChooserModel_OnChooseActivityListenerImplementor.java(8,58): javacerror : error: package android.support.v7.internal.widget.ActivityChooserModel does not exist
android.support.v7.internal.widget.ActivityChooserModel.OnChooseActivityListener
I'm updated Xamarin to the latest bits (5.10.1)

Related

Android Studio can't install android 12 when run with Installation Options - APK from app bundle

I use installation Options - Deploy - APK from app bundle becasuse of PAD(Play Asset Delivery).
Android 10, 11 build & run works well, but in android 12, install failed.
(But Build SUCCESSFUL)
and install failed message
Installation failed due to: 'Failed to commit install session 223924615 with command cmd package install-commit 223924615.
Error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION:
Failed parse during installPackageLI: /data/app/vmdl223924615.tmp/split_config.xxhdpi.apk (at Binary XML file line #0):
/data/app/vmdl223924615.tmp/split_config.arm64_v8a.apk (at Binary XML file line #0): Failed to read manifest from /data/app/vmdl223924615.tmp/split_assetPack.apk'
(My assets pack name is assetPack)
version info
android studio :
target SDK : 30
min SDK : 26
gradle version : 4.0.2
build tools version : 30.0.2
kotlin version : 1.4.10
implementation 'androidx.work:work-runtime-ktx:2.7.0-alpha05'
Put this line in build.gradle and sync...
work for me....

INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android Studio - Java/Kotlin and Visual Studio - Xamarin

I am wanting to debug and install my application on a physical clock.
First I tried to create the application in Xamarin.Android, I finished the application and it worked very well in an emulator, but when I tried to send to the device, the following error appeared:
ADB0010: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be >installed in /data/app/AppXamarinWear.AppXamarinWear-1: Package >AppXamarinWear.AppXamarinWear requires unavailable shared library >com.google.android.wearable; failing!]
em Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String >output, String packageName) na >E:\A_work\1824\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputP>arsing.cs:linha 341
em Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.>>b__0(Task1 t) na >E:\A\_work\1824\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:li>nha 753
em System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
em System.Threading.Tasks.Task.Execute() 0
Then I created an empty project in AndroidStudio, just created the project, did not change any line of code, and tried to run the application on the device, so I got the following error:
Installation failed with message Failed to commit install session 1131471407 >with command cmd package install-commit 1131471407. Error: >INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in >/data/app/br.pinheiros.weardebug7-1: Package br.pinheiros.weardebug7 requires >unavailable shared library com.google.android.wearable; failing!.
It is possible that this issue is resolved by uninstalling an existing >version of the apk if it is present, and then re-installing.
I understood that the two solutions are bringing the same error, something with Google Api, I have already changed all the developer settings in Wear.
Model: Zeblaze Thor 4 Pro

can't deploy my AppBuilder project on android device

I have to test my hybrid mobile application on my android device,I have selected "USB debugging" in my phone and I have selected the "Unknown sources" option,but when I try to deploy my application in my mobile I get this error:
Building package: [D:\WebMobile\test\backupsProjetWebMobile2\KendoUITabStrip1\obj\Debug\MyProjet.zip]
Project files uploaded to the cloud.
Sending build request for project MyProjet with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
Configuration=Debug
LiveSyncToken=5uW/86s7080iMfWs0yNn+vJIKWo6n1qh4Lpa8kEnoUNFIaJOOQSDimQ9e0N6ELxXgt2bTOb/Xp6eRqCttuaoxQCzlLku533tlF1hvwrKPpxPeX/CfV/aGFN8Wr6MJl4D.
C:\Users\Client\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\zc3hmmck.xbh\Targets\Build.targets(189,3): error : Server build failed. Server output: Project "MyProjet.tmp.proj" (default targets):
android Build Tooling revision 2015.11.03.5r
Warning: Failed to install 'cordova-plugin-mapbox':Error: Variable(s) missing: ACCESS_TOKEN
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23
at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13)
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44
at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Warning: Variable(s) missing: ACCESS_TOKEN
Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189
Warning: throw Error("exit code: " + code);
^
Warning: Error: exit code: 1
at Error (<anonymous>)
at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
Error: Build failed during execution
Error: 'Build failed with error code 8'
Done building project "MyProjet.tmp.proj" -- FAILED.
.
Done building project "MyProjet.iceproj" -- FAILED.
Build FAILED.
I work with Telerik-AppBuilder visual Studio 2015 extension(kendo-ui) my android phone is Samsung Galaxy Star Duos GT-S7262 version 4.1.2
any help please and thanks
update:
I have folloewed this link [https://github.com/Telerik-Verified-Plugins/Mapbox] but I get this error:1
C:\Users\Admin>cordova plugin add https://github.com/Telerik-Verified-Plugins/Mapbox --variable ACCESS_TOKEN=my.access.token
Current working directory is not a Cordova-based project.
I have installed the cordova-plugins with npm,but I still get the problem :(
So the question boils down to: how in Visual Studio do you provide Cordova variables to plugins?
(You tried adding the plugin from the c:/users/admin folder which is not your project folder, that's why the Cordova CLI said: "Current working directory is not a Cordova-based project.")
I'm assuming you're using the AppBuilder extension for Visual Studio. If so, please read this doc, especially about how to configure variables:
http://docs.telerik.com/platform/appbuilder/creating-your-project/using-plugins/using-verified-plugins/install-verified-plugins

Robolectric: class file for org.robolectric.util.ShadowProvider not found

I just downloaded the Robolectric samples and tried to build it, but I'm getting an error:
$ git clone https://github.com/robolectric/robolectric-samples.git
(Edited settings.gradle to remove the api-16 and api-19 samples, so I'm only building android-api-21.)
Now when I do gradle test it fails at task ':android-api-21:compileTestDebugJava':
:android-api-21:compileTestDebugJava
/tmp/robolectric-samples/android-api-21/src/test/java/com/example/activity/MainActivityTest.java:14: error: cannot access ShadowProvider
import static org.robolectric.Shadows.shadowOf;
^
class file for org.robolectric.util.ShadowProvider not found
/tmp/robolectric-samples/android-api-21/src/test/java/com/example/activity/MainActivityTest.java:23: error: cannot find symbol
final Menu menu = shadowOf(activity).getOptionsMenu();
^
symbol: method shadowOf(Activity)
location: class MainActivityTest
2 errors
:android-api-21:compileTestDebugJava FAILED
I guess it's possible that it's just a temporary problem with the 3.0-SNAPSHOT build or am I doing something wrong?
Some more info:
OS X Yosemite
I have the latest Android SDK 21 and build tools 21.1.2 installed
I deleted my ~/.m2 and ~/.gradle/caches directories first
ran ./gradlew --refresh-dependencies test

Can't build streamer tutorial for android on mac

Can't build streamer tutorial_3 for android on mac
I,ve got all environment variables needed.
My eclipse can't to resolve some symbols, but to some of them i can get by pushing F3. It's very strange for me.
Here is the command line output:
23:04:06 **** Build of configuration Default for project Tutorial3 ****
/Users/antonivanuskin/android-develop/android-ndk-r10/ndk-build all
GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c
GStreamer : [COMPILE] => gst-build-armeabi/gstreamer_android.c
GStreamer : [LINK] => gst-build-armeabi/libgstreamer_android.so
lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0
compilation terminated.
lto-wrapper: /Users/antonivanuskin/android-develop/android-ndk-r10/toolchains/arm- linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc returned 1 exit status
/Users/antonivanuskin/android-develop/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [buildsharedlibrary_armeabi] Error 1
23:04:10 Build Finished (took 3s.740ms)*
I use ndk-10r and gst-1.4.0.
I know that there is no interfaces/xoverlay in new streamer.
EDIT
I've built ok, but steel got underlines of many glib-types and GST-macross. Here is a screenshot:
what is interesting that i have no underlined headers, for example: i've include pthread.h but have got underlined pthread_t and phtread_key_t....
i think that i have not install some general libraries on my mac, something like libc or what ever...may it couse this problem? The problem is that i can't run my app from eclipse. and for more: i use DS-5 CE IDE
This is most likely because we build the android 1.4.x cerbero packages with the r9d NDK.
You might want to use the r9d NDK until we provide binaries built with a more recent NDK (started some builds to see if everything goes through fine).

Categories

Resources