How can I run kinetise(framework) source code in Android studio? - android

I do one template project from "kinetise"(framework) and downloaded the android source code,
but not able to run this source code in android studio for editing.the downloaded source code was combining of javascript files also.
https://www.kinetise.com/user/dashboard

In kinetise while build code for Android and iOS both it will provide a template in which there are too much irrelevant code you have to search your required file by your own and done changes accordingly.
You must have to share your error here.
Most common error:
Error:Project :Kinetise declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :facebook-android-sdk.

Related

Using flutter module in kotlin multiplatform app

I created an application with kotlin multiplatform and I want now to use flutter to develop the UI once. I followed the tutorial to integrate flutter in an already existing Android app and I choose option B to compile everything in one step.
The first trouble is including the Flutter module as a subproject in the host app: in the kotlin multiplatform project, I have to rename the settings.gradle.kts to settings.gradle. Then I have another error I can't get rid of: Caused by: java.lang.AssertionError: Project :app doesn't exist. To custom the host app project name, set 'org.gradle.project.flutter.hostAppProjectName=<project-name>' in gradle.properties.. Expression: (appProject != null). Values: appProject = null
I understand what the error means: with kotlin multiplatform, the project is not called app but the name of the app, in my case MusicTraining. So as mentioned in the kotlin documentation:
Tip: By default, the host app provides the: app Gradle project. To change the name of this project, set flutter.hostAppProjectName in the Flutter module’s gradle.properties file. Finally, include this project in the host app’s settings.gradle file mentioned below.
So, in the flutter module's gradle.properties file I tried to add the lines:
flutter.hostAppProjectName="MusicTraining"
flutter.hostAppProjectName=":MusicTraining"
I still have the same error.
I tried with vscode to change all instances of :app to :MusicTraining but nothing works. I still have the same error.
As the error mention, I tried to add the line
org.gradle.project.flutter.hostAppProjectName="MusicTraining"
org.gradle.project.flutter.hostAppProjectName=":MusicTraining"
in the flutter module's gradle.properties file, but still the same error.
How can I integrate a flutter module in a kotlin multiplatform app?
Try to add flutter.hostAppProjectName=MusicTraining into gradle.properties file with both Flutter module and you root project.
Notice: run you native application, If you run main.dart, you still get this error
I face the same problem, this works for me.
If you already have a Kotlin multiplatform project, I'd use Jetbrains Compose multiplatform instead of Flutter. Compose is very similar to Flutter and you would avoid the technology split.
https://www.jetbrains.com/de-de/lp/compose-mpp/

Error on Android studio for opening a project

I am trying to open an Android Studio News App project but getting this error agian and again i.e.
Project :News-Android-App declares a dependency from configuration 'implementation' to configuration 'default' which is not declared in the descriptor for project :MaterialShowcaseView:library.
You need to specify the configuration for your dependency. If you don't, it assumes a "default" configuration, which will give you an error. The MaterialShowcaseView Library has a GitHub page and they give you the directions for how to add to Gradle. The link is
https://github.com/deano2390/MaterialShowcaseView
Since you didn't provide any details, I don't know if you already tried this. But the error indicates that you must have failed to add something in the gradle files.
here's a screen shot of the gradle directions

Include External Source Code Library for Android Studio 1.4.1

I'm attempting to create an Android app with Android Studio that uses source code from:
https://github.com/mapbox/mapbox-gl-native/
I will need to modify the source code, build and debug the changes, and commit those changes back to the forked repository I've made from mapbox-gl-native.
It appears much of the library code is in C++, while the project that uses the code will be in Java (if that makes a difference).
I've tried a bunch of things (mostly ignorant) and keep getting the following message:
Gradle 'name' project refresh failed
Error: Configuration with name 'default' not found.
Newbie on Android Studio, so please be as descriptive as possible. I'm using Android Studio 1.4.1, as other similar questions seem to have version specific answers.
Is there a description on how to set up an Android Studio project to include source code and how to structure such a project?
or
Can you tell me what the message means and how to fix it?
Thanks.

Need help setting up RoboSpock

I want to use RoboSpock for Testing my android apps, but I am stuck setting up my project. I created an example project which I have added to github.
https://github.com/DerSchimi/RoboSpockExample
This project contains a folder called AppLibrary which is an android-library. The App itself is inside the folder App.
All RoboSpock Tests should go inside the folder AppTests. I have configured everything, but when I try to run my tests I get this error message:
WARNING: no system properties value for ro.build.date.utc
groovy.lang.MissingPropertyException: No such property: AppActivity for class: de.derschimi.app.MainActivitySpecification
at de.derschimi.app.MainActivitySpecification.Should say hello world(MainActivitySpecification.groovy:15)
This is the line of code:
def mainActivity = Robolectric.buildActivity(AppActivity.class).create().get()
Is there anybody out there who is using RoboSpock? Thanks a lot for your help!
The plugin I consider as deprecated. At this moment I'm creating just samples how to enforce gradle java plugin understand the android one. I suggest to browse this project.
https://github.com/pjakubczyk/robospock-sample/tree/master/simple

Appcelerator - C2dm on Android

I've been trying to install the C2dm module for titanium studio found here: https://github.com/Kuraturpa/titanium-c2dm
I keep having issues. When I set it up as outlined here: http://developer.appcelerator.com/question/38451/c2dm-in-titanium
I keep getting an error that it can't find the module (at runtime). The error reads:
Location: [357, 0] /tmp/module.js Message: Error: Requested module not
found: com.findlaw.titanium.cd2m (/tmp/module.js#357)
I indeed can't find this file anywhere in my stuff, because I don't have a tmp folder in my project. I originally put the xml code from that above forum post in the timodule.xml file and it got me to this runtime error. When I switch it to the tiapp.xml file I get this error:
[ERROR] The 'apiversion' for 'com.findlaw.titanium.c2dm' in the module
manifest is not a valid value. Please use a version of the module that
has an 'apiversion' value of 2 or greater set in it's manifest file
When I try to manually build the module myself using ant, I get:
BUILD FAILED /Users/sammy/Downloads/IGx89-titanium-c2dm-3b05b8a
2/build.xml:9: Cannot find /Library/Application
Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml
imported from /Users/sammy/Downloads/IGx89-titanium-c2dm-3b05b8a
2/build.xml
I checked, and the build.xml file is in the folder shown in the error. I'm kind of at a loss as to what to do here...
That module does not support the version of Titanium Mobile you are using (1.8.0.1 or higher). You must either update it yourself, or find another C2DM module.
The guide for porting to 1.8.0.1 is available here:
http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Android_Module_Porting_Guide_for_1.8.0.1

Categories

Resources