Smartwatch 2 - Cannot compile sample project even - java

I wanted to start developing for the Sony Smartwatch 2 I just got.
This is where the problems started. I found many official articles about downloading and setting up the Sony Add-on SDK.
But here's the dark side:
It is not available anymore from Sony's dev site, so I could not add it by using the Android SDK manager .
After lots of sweat I managed to find it only here.
Which is the 2.0 version.
I unzipped it into my /[SDK]/add-ons/sony_add-on_sdk_2_0 folder, and set up Eclipse (4.6.3) with the following SDK manager settings:
SDK settings
First it reported the Sony SDK broken, but I found in another topic that I should add a source.properties file, in order to make it work, which has the following header:
### Android Tool: Source of this archive.
#Wed Feb 28 14:14:39 CET 2018
Addon.NameDisplay=SONY ADD-On SDK
Addon.NameId=sony_add_on
Addon.VendorDisplay=SONY
Addon.VendorId=sony
AndroidVersion.ApiLevel=16
Pkg.Desc=Android + Google APIs
Then it became visible for the Eclipse
When I try to build the SamplePreferenceActivity it is imported with SmartExtensionsAPI and SmartExtensionsUtils but one after the other as I read this can make errors too, in the following order:
API
Utils
Sample
which has the following properties:
Properties for SmartExtensionAPI
Properties for SmartExtensionUtils
With these settings I still get error in:
/SmartExtensionUtils/src/com/sonyericsson/extras/liveware/extension/util/widget/NotificationWidgetExtension.java
saying
SmartWatchNotificationWidgetImage cannot be resolved to a type
and in
/SamplePreferenceActivity/res/layout/item_gallery.xml
saying:
Couldn't resolve resource #style/Widget.Holo.ActionMode Couldn't
resolve resource #dimen/smart_watch_2_control_width You must supply a
layout_width attribute. Couldn't resolve resource
#dimen/smart_watch_2_text_size_large
"#dimen/smart_watch_2_text_size_large" in attribute "textSize" is not
a valid format. Couldn't resolve resource
#dimen/smart_watch_2_text_size_medium
"#dimen/smart_watch_2_text_size_medium" in attribute "textSize" is not
a valid format.
What am I missing here? Should I use a completely different setup? Is this because I had to manually add the SDK to Eclipse? If you need anything else to understand the problem properly, feel free to ask me, thanks for helping me!

Related

Gradle did not find Minecraft Mappings for 1.12.2?

I would like to learn minecraft mod development, but there is an error with downloading the mappings
The error message is:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
Could not find net.minecraftforge:forge:1.12.2-14.23.5.2860_mapped_snapshot_20180814-1.12.
Searched in the following locations:
- file:~/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.12.2-14.23.5.2860_mapped_snapshot_20180814-1.12/forge-1.12.2-14.23.5.2860_mapped_snapshot_20180814-1.12.pom
- file:~/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.12.2-14.23.5.2860_mapped_snapshot_20180814-1.12/forge-1.12.2-14.23.5.2860_mapped_snapshot_20180814-1.12.jar
Required by:
project :
Possible solution:
Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
The directories specified does not exist. Also I tried downloading and importing the MCP instead of using an IntelliJ Plugin for Minecraft. The same error occurred while using this but there was a few more links (that leads to a webpage) that does not exists ("error 404 not found") if I clicked them.
The line in build.gradle which specifies the mappings used is at the moment:
mappings channel: 'snapshot', version: '20180814-1.12'
It was a stable version before and there was the same errors.
Does anyone know what I can do about it?
i had the same problem and i fix it by changing it to java 1.8 eclipse temurin
btw sorry for my bad english

How to fix "the App Engine SDK is out-of-date"?

Many years ago, I used "appengine-java-sdk-1.9.22" to build my webapp which uses some datastore
Now, I updated my app on eclipse & when deployed, it said:
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=speaklikewater&version=1&
401 Unauthorized
Your version of the App Engine SDK is out-of-date. Please update your SDK at https://cloud.google.com/appengine/docs/standard/java/download#appengine_sdk and your Maven plugin, if necessary, according to the instructions at https://cloud.google.com/appengine/docs/standard/java/tools/maven
at com.google.appengine.tools.admin.OAuth2ServerConnection.doHandleSendErrors(OAuth2ServerConnection.java:65)
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:373)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:317)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:296)
at com.google.appengine.tools.admin.LoggingClientDeploySender.send(LoggingClientDeploySender.java:47)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:1134)
at com.google.appengine.tools.admin.AppVersionUpload.deploy(AppVersionUpload.java:982)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:865)
at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:223)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:197)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:580)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:65)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Now, I used the almost lastest "sdk appengine-java-sdk-1.9.54" (see the picture below), but still get the same error
Note:
I changed to new SDK by going to Window==> Preferences==> Google ===>App Engine & selected "appengine-java-sdk-1.9.54"
If I use "appengine-java-sdk-1.9.64", I get this error "Internal Error":
SO, I decided to use "appengine-java-sdk-1.9.54" because some people also have "Internal Error" & they tried using lower version & it worked.
I am not sure how to fix it.
As stated in the Public Issue [1], Google Plugin is deprecated, you need to migrate [2] to Google Tools.
Here you have the quickstart for you to have a better idea on how GAE currently works with Eclipse [3].

Class: com.google.android.gms.ads.AdView , could not be instantiated

Although the same question was asked several times i didnt manage to fix my problem. It has been months since i try to find a solution. Iam using latest Android SDK with latest Google Play Servises v5.0.89....
Images:
Properties:
Build Path:
Proguard:
Activity.Java:
Manifest:
Activity.Xml:
are you testing on device or emulator ? In your first screenshot (properties), you seem to have picked generic target, try with google api target as shown below:
Also, i notice you have 2 compat libraries in build path...i would pick one.
Please see this sample , i was able to quickly test it on emulator:

pulse 'cannot find repositories containing artifacts'

i have been struggling with installing google plugin in myeclipse config center for long and i have managed to overcome a number of issues as described below. i am using myeclipse 10.7.1 with base indigo 3.7.2.
i downloaded this zip com.google.gdt.eclipse.suite.3.7.update.site_3.6.0 and added it to available software sites.
i disabled firewall and i dont have any antivirus installed, i have no proxy server and eclipse has no problem accessing sites as far as i can see because i checked the 'contact all sites...' option other wise it would fail to install and tell me it did not find 'org.eclipse.mylyn.commons.ui 0.0.0'.
i added the line
-Djava.net.preferIPv4Stack=true
to eclipse.ini, other wise it would fail to install and tell me it could not find osgi.bundle blah blah blah.
i have been testing with both plain indigo 3.7 and myeclipse.
however, at this stage, indigo gave up all its errors and gwt is happily sitting in the toolbar.
but for some reason myeclipse goes through all the steps and just at the end it tells me it An error occurred while collecting items to be installed
session context was:(profile=com.poweredbypulse.profile-0-rb-5513151-1406359175233, phase=com.genuitec.pulse2.client.common.download.PulseCollect, operand=, action=).
Could not find repositories containing the following artifacts: [osgi.bundle,org.eclipse.mylyn.commons.screenshots,3.6.0.v20110608-1400, osgi.bundle,org.eclipse.mylyn.commons.ui,3.6.1.v20110720-0100]
and that simply marks the end of my struggle and i have to start all over looking endlessly for solution.
my local plugin repository contains plugins,features,artifacts.jar and content.jar.
i am not very familiar with osgi. however when i attempted to view its console logs, i saw 10 lines like
INFO: loading artifacts for http://eclipse.poweredbypulse.com/downloads/products/pulse/mirrors in 722 ms
aug 15,2014 9:48:45 am com.genuitec.pulse2.client.common.p2.p2bridge cacheRepositories
the last of them was:
INFO: loading artifacts for http://downloads.myeclipseide.com/downloads/products/eworkbench/jdks in 1830 ms
[Fatal Error]:11749:66: Premature end of file.
aug 15,2014 9:48:45 am com.genuitec.pulse2.client.common.p2.p2bridge processOperands
is there somebody out there who understands this issue as i have crawled the web for several hours and i have not managed to get anything to proceed from here and all my boss says is "i trust you enough to finish it within the next 24 hours"
NB. editing specific update sites is straightforward in base eclipse but i have not seen such an option in myeclipse config center i.e the list of sites in the work with combobox of eclipse are invisible ,atleast to me, in myeclipse.
I think i have the answer
i have tried to run the install again, this time paying more attention to the osgi console logs and i have captured more lines:
WARNING: unable to load repository http://eclipse.poweredbypulse.com/downloads/aux/eclipse-mirror/eclipse/updates/3.7
WARNING: unable to load repository http://eclipse.poweredbypulse.com/downloads/aux/eclipse-mirror/releases/indigo
when i try to access the second url from mybrowser
403 Forbidden
You don't have permission to access /downloads/aux/eclipse-mirror/releases/indigo/ on this server
Apache/2.2.3 (CentOS) Server at eclipse.poweredbypulse.com Port 80
same for the second url which i have just tried.
The problem i think is the failure to access these two update sites.

JPos application error

Hi I am trying to debug the jpostest application that came with Motorola Scanner SDK foe Windows.
I am using Eclipse (Juno) with Java 7 on Windows 8.
I get the following exception when I click on the 'open' button in the 'Scanner' tab of the
POSTest application.
jpos.JposException: Could not connect to service with logicalName = MotorolaScannerSNAPI: Exception.message=com.symbol.jpos.SymScannerSvc112Factory
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
Any help would be highly appreciated.
Thanks.
It might be a bit late, but it seems that you are missing some 'jar' dependencies.
In the 'JPos Sample Application' folder of the Motorola Scanner SDK, check the 'JPosTest.bat' file, it lists all the needed dependencies (by defining some classpaths). You will also need to define the 'java.library.path' property to point to the directory containing the CSJPOS.dll (it is also done in the bat launcher).

Categories

Resources