-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues w/ uiDebug on $ tns android run --emulator #1370
Comments
I hit this issue as well and I’m not sure what’s up. I get basically the exact same error:
I’m using version 1.5.1 of the Android runtime. |
I was also able to recreate the issue with version 1.5.0 of the Android runtime. Here’s the full log https://gist.github.com/tjvantoll/fdeac9c3c09415e0c7c4 |
the problem is there are two that means that probably some solution is to find the duplicated type and delete one of the |
To add to @Plamen5kov's answer, often this happens with widgets.jar. A quick fix would be to delete the |
There is an issue how android build is handling dev dependencies and is already logged here NativeScript/android#323 |
As a workaround for the specific issue remove jscs from devDependencies of your project |
I just installed nativescript-telerik-ui and now I am getting almost the same error, but this one is complaining about: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Is there an issue with this plug in maybe??? |
This seems like an unrelated problem. At any rate we are trying to reproduce it and will write back when we have more information on the matter. |
Ok, let me know if you need more info from my side, I don't have anything special, just the latest version of nativescript and the latest version of the plugin, trying to use the SideDrawer. |
Hello @Daxito Thanks! |
Can I just give a copy of my project? it only contains one or two views, if so, how? it is on my local pc. |
Ok, this is the log from beginnnig to end, from the time I create the project, add platforms, add plugin and try to run using my attached android device, I dont have to even try to use the plugin, but FYI if I dont add the plugin it works fine. LOG: Jacks-MacBook-Air-2:documents juanoviedo$ tns create SampleApp3 Project SampleApp3 was successfully created Jacks-MacBook-Air-2:documents juanoviedo$ cd SampleApp3 Jacks-MacBook-Air-2:SampleApp3 juanoviedo$ tns platform add android Copying template files... Project successfully created. Jacks-MacBook-Air-2:SampleApp3 juanoviedo$ tns plugin add nativescript-telerik-ui npm WARN package.json @ No description npm WARN package.json @ No repository field. npm WARN package.json @ No README data npm WARN package.json @ No license field. nativescript-telerik-ui@0.2.3 node_modules/nativescript-telerik-ui Successfully installed plugin nativescript-telerik-ui. Jacks-MacBook-Air-2:SampleApp3 juanoviedo$ tns run android Successfully prepared plugin nativescript-telerik-ui for android. Project successfully prepared :config phase: createDefaultIncludeFiles +found plugins: nativescript-telerik-ui :config phase: createPluginsConfigFile +creating product flavors include.gradle file in configurations folder... :config phase: pluginExtend +applying configuration from: /Users/juanoviedo/Documents/SampleApp3/platforms/android/configurations/include.gradle +applying configuration from: /Users/juanoviedo/Documents/SampleApp3/platforms/android/configurations/nativescript-telerik-ui/include.gradle :config phase: copyAarDependencies :config phase: addAarDependencies +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/Chart-2015.3.1307-trial-release.aar +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/Common-2015.3.1307-trial-release.aar +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/Data-2015.3.1307-trial-release.aar +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/Input-2015.3.1307-trial-release.aar +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/List-2015.3.1307-trial-release.aar +adding dependency: /Users/juanoviedo/Documents/SampleApp3/platforms/android/libs/aar/Primitives-2015.3.1307-trial-release.aar :preBuild UP-TO-DATE :preNativescript-telerik-uiDebugBuild UP-TO-DATE :checkNativescript-telerik-uiDebugManifest :preNativescript-telerik-uiReleaseBuild UP-TO-DATE :prepareChart201531307TrialReleaseLibrary :prepareComAndroidSupportAppcompatV72310Library :prepareComAndroidSupportRecyclerviewV72310Library :prepareComAndroidSupportSupportV42310Library :prepareCommon201531307TrialReleaseLibrary :prepareData201531307TrialReleaseLibrary :prepareInput201531307TrialReleaseLibrary :prepareList201531307TrialReleaseLibrary :preparePrimitives201531307TrialReleaseLibrary :prepareNativescript-telerik-uiDebugDependencies :compileNativescript-telerik-uiDebugAidl :compileNativescript-telerik-uiDebugRenderscript :generateNativescript-telerik-uiDebugBuildConfig :cleanLocalAarFiles :deleteJavaDir UP-TO-DATE :ensureMetadataOutDir UP-TO-DATE :collectAllJars :isMetadataGenerationNecessary :buildMetadata Skip android.support.v7.internal.view.WindowCallbackWrapper Error: java.lang.NoClassDefFoundError: android/view/SearchEvent Skip android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23 Error: java.lang.NoClassDefFoundError: android/hardware/fingerprint/FingerprintManager$AuthenticationCallback Skip android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23$1 Error: java.lang.NoClassDefFoundError: android/hardware/fingerprint/FingerprintManager$AuthenticationCallback Skip com.telerik.android.primitives.widget.sidedrawer.BlurFadeLayer Error: java.lang.NoClassDefFoundError: Landroid/support/v8/renderscript/RenderScript; :copyMetadata :generateNativescript-telerik-uiDebugAssets UP-TO-DATE :mergeNativescript-telerik-uiDebugAssets :generateNativescript-telerik-uiDebugResValues :generateNativescript-telerik-uiDebugResources :mergeNativescript-telerik-uiDebugResources :processNativescript-telerik-uiDebugManifest :processNativescript-telerik-uiDebugResources /Users/juanoviedo/Documents/SampleApp3/platforms/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.0/res/values-v23/values-v23.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. /Users/juanoviedo/Documents/SampleApp3/platforms/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.0/res/values-v23/values-v23.xml:2 : Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. :processNativescript-telerik-uiDebugResources FAILED FAILURE: Build failed with an exception.
Execution failed for task ':processNativescript-telerik-uiDebugResources'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 21.028 secs Command /Users/juanoviedo/Documents/SampleApp3/platforms/android/gradlew failed with exit code 1 run android┌────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────┐ │ Usage │ Synopsis │ │ Run on all connected │ $ tns run android [--key-store-path --key-store-password --key │ │ devices and running │ -store-alias --key-store-alias-password ] [--release] [--justlaunch] │ │ emulators │ │ │ Run on a selected │ $ tns run android --device [--key-store-path --key-store │ │ connected device or │ -password --key-store-alias --key-store-alias-password ] [- │ │ running emulator │ -release] [--justlaunch] │ │ Start an emulator and │ $ tns run android --emulator [] [--key-store-path --key │ │ run the app inside it │ -store-password --key-store-alias --key-store-alias-password │ │ │ ] [--release] [--justlaunch] │ └────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────┘ Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console. Options
Attributes
Jacks-MacBook-Air-2:SampleApp3 juanoviedo$ |
Hello @Daxito , Can you please check which Android platforms you have installed on your computer? You can do this by running the Android SDK Manager. I think you're missing API Level 23. |
I already had installed API Level from 17 to 23, but yes it was related to the API Level, my environment variable for the SDK was pointing to another folder, once I set the folder that the SDK Manager reported it worked! |
Sure, no problem! |
@ginev is it possible that |
@teobugslayer probably will give more insights about this? |
Hi, Hope this explains the case :) |
From @DenverCoder-9 on January 2, 2016 2:6
I am trying to get the sample-Groceries app to run on my Macbook. I've followed all of the Installation instructions and have verified that TNS Doctor returns no issues, my Android SDK is installed, I've configured a virtual device, and setup the correct paths for ANDROID_HOME. but I still cannot successfully run an app.
My issue seems to come back to a process called uiDebug, I'll get to about 80% and then it fails every single time. I'm not very familiar with Java, hence the reason I'm trying to use NativeScript so I don't have a clue how to fix it.
Here is the output I see:
I am completely out of ideas so any help someone could offer would be greatly appreciated.
I have done a little bit more digging and I can see in the merger.xml file the following info:
I attempted to checkout /Users/DenverCoder/Dev/nativescript/sample-Groceries/platforms/android/src/nativescript-telerik-uiDebug/assets and it does not exist.
I do not have this directory: nativescript-telerik-uiDebug so the assets directory is unavailable and I presume this is where my error begins...
Copied from original issue: NativeScript/NativeScript#1317
The text was updated successfully, but these errors were encountered: